rust/tests/ui/lexer/lex-bad-char-literals-1.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
1.1 KiB
Plaintext
Raw Normal View History

2018-10-20 20:36:17 +00:00
error: numeric character escape is too short
2020-01-08 18:25:42 +00:00
--> $DIR/lex-bad-char-literals-1.rs:2:6
2018-10-20 20:36:17 +00:00
|
LL | '\x1'
| ^^^
2018-10-20 20:36:17 +00:00
error: numeric character escape is too short
2020-01-08 18:25:42 +00:00
--> $DIR/lex-bad-char-literals-1.rs:6:6
2018-10-20 20:36:17 +00:00
|
LL | "\x1"
| ^^^
2018-10-20 20:36:17 +00:00
error: unknown character escape: `\u{25cf}`
2020-01-08 18:25:42 +00:00
--> $DIR/lex-bad-char-literals-1.rs:10:7
2018-10-20 20:36:17 +00:00
|
LL | '\●'
| ^ unknown character escape
|
2023-06-10 18:46:11 +00:00
= help: for more information, visit <https://doc.rust-lang.org/reference/tokens.html#literals>
help: if you meant to write a literal backslash (perhaps escaping in a regular expression), consider a raw string literal
|
LL | r"\●"
| ~~~~~
2018-10-20 20:36:17 +00:00
error: unknown character escape: `\u{25cf}`
2020-01-08 18:25:42 +00:00
--> $DIR/lex-bad-char-literals-1.rs:14:7
2018-10-20 20:36:17 +00:00
|
LL | "\●"
| ^ unknown character escape
|
2023-06-10 18:46:11 +00:00
= help: for more information, visit <https://doc.rust-lang.org/reference/tokens.html#literals>
help: if you meant to write a literal backslash (perhaps escaping in a regular expression), consider a raw string literal
|
LL | r"\●"
| ~~~~~
2018-10-20 20:36:17 +00:00
error: aborting due to 4 previous errors