rust/tests/ui/lexer/lex-bad-str-literal-as-char-3.rs
Lukas Wirth 49969468b5 Add missing 2015 edition directives
These tests specifically test 2015 edition behavior, so ensure that they can only be run with this edition
2025-06-03 11:45:58 +02:00

10 lines
263 B
Rust

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