rust/tests/ui/unpretty/bad-literal.rs
Lukas Wirth 20ab952b4d Explicitly annotate edition for unpretty=expanded and unpretty=hir tests
These emit prelude imports which means they are always edition dependent
2025-04-16 11:10:10 +02:00

10 lines
197 B
Rust

//@ compile-flags: -Zunpretty=hir
//@ check-fail
//@ edition: 2015
// In #100948 this caused an ICE with -Zunpretty=hir.
fn main() {
1u;
//~^ ERROR invalid suffix `u` for number literal
}