rust/tests/ui/lexer/lex-bad-str-literal-as-char-3.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
236 B
Rust
Raw Normal View History

//@ revisions: rust2015 rust2018 rust2021
//@[rust2018] edition:2018
//@[rust2021] edition:2021
fn main() {
println!('hello world');
//~^ ERROR unterminated character literal
//[rust2021]~| ERROR prefix `world` is unknown
}