rust/src/test/ui/parser/lex-bad-char-literals-5.stderr
Esteban Küber 0baf61bfdb Increase spacing for suggestions in diagnostics
Make the spacing between the code snippet and verbose structured
suggestions consistent with note and help messages.
2019-10-24 12:26:01 -07:00

25 lines
674 B
Plaintext

error: character literal may only contain one codepoint
--> $DIR/lex-bad-char-literals-5.rs:1:18
|
LL | static c: char = '\x10\x10';
| ^^^^^^^^^^
|
help: if you meant to write a `str` literal, use double quotes
|
LL | static c: char = "\x10\x10";
| ^^^^^^^^^^
error: character literal may only contain one codepoint
--> $DIR/lex-bad-char-literals-5.rs:5:20
|
LL | let ch: &str = '\x10\x10';
| ^^^^^^^^^^
|
help: if you meant to write a `str` literal, use double quotes
|
LL | let ch: &str = "\x10\x10";
| ^^^^^^^^^^
error: aborting due to 2 previous errors