2024-03-30 02:50:17 +00:00
|
|
|
error: prefix `world` is unknown
|
|
|
|
--> $DIR/lex-bad-str-literal-as-char-3.rs:5:21
|
|
|
|
|
|
|
|
|
LL | println!('hello world');
|
|
|
|
| ^^^^^ unknown prefix
|
|
|
|
|
|
|
|
|
= note: prefixed identifiers and literals are reserved since Rust 2021
|
|
|
|
help: if you meant to write a string literal, use double quotes
|
|
|
|
|
|
|
|
|
LL | println!("hello world");
|
|
|
|
| ~ ~
|
|
|
|
|
2024-03-14 00:22:52 +00:00
|
|
|
error[E0762]: unterminated character literal
|
|
|
|
--> $DIR/lex-bad-str-literal-as-char-3.rs:5:26
|
|
|
|
|
|
|
|
|
LL | println!('hello world');
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
help: if you meant to write a string literal, use double quotes
|
|
|
|
|
|
|
|
|
LL | println!("hello world");
|
|
|
|
| ~ ~
|
|
|
|
|
2024-03-30 02:50:17 +00:00
|
|
|
error: aborting due to 2 previous errors
|
2024-03-14 00:22:52 +00:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0762`.
|