rust/tests/ui/lexer/lex-bad-str-literal-as-char-3.rust2018.stderr
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

16 lines
424 B
Plaintext

error[E0762]: unterminated character literal
--> $DIR/lex-bad-str-literal-as-char-3.rs:6:26
|
LL | println!('hello world');
| ^^^
|
help: if you meant to write a string literal, use double quotes
|
LL - println!('hello world');
LL + println!("hello world");
|
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0762`.