about summary refs log tree commit diff
path: root/tests/ui/lexer/lex-bad-str-literal-as-char-3.rust2021.stderr
blob: 605cb66df1cf02651e9fe92b7d6a6278256def83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
error: prefix `world` is unknown
  --> $DIR/lex-bad-str-literal-as-char-3.rs:6: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');
LL +     println!("hello world");
   |

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 2 previous errors

For more information about this error, try `rustc --explain E0762`.