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

9 lines
182 B
Rust
Raw Normal View History

2018-10-20 16:02:06 -05:00
// compile-pass
fn main() {
2017-05-31 02:43:47 -05:00
let _ = "Foo"_;
//~^ WARNING underscore literal suffix is not allowed
//~| WARNING this was previously accepted
//~| NOTE issue #42326
}