rust/src/test/ui/parser/underscore-suffix-for-string.rs

9 lines
182 B
Rust

// compile-pass
fn main() {
let _ = "Foo"_;
//~^ WARNING underscore literal suffix is not allowed
//~| WARNING this was previously accepted
//~| NOTE issue #42326
}