2021-01-23 20:48:31 +00:00
|
|
|
error: character constant must be escaped: `'`
|
2020-01-08 18:25:42 +00:00
|
|
|
--> $DIR/bad-char-literals.rs:6:6
|
2018-10-20 20:36:17 +00:00
|
|
|
|
|
|
|
|
LL | ''';
|
2024-07-06 03:07:46 +00:00
|
|
|
| ^
|
|
|
|
|
|
|
|
|
help: escape the character
|
|
|
|
|
|
|
|
|
LL | '\'';
|
|
|
|
| ~~
|
2018-10-20 20:36:17 +00:00
|
|
|
|
2021-01-23 20:48:31 +00:00
|
|
|
error: character constant must be escaped: `\n`
|
2020-01-08 18:25:42 +00:00
|
|
|
--> $DIR/bad-char-literals.rs:10:6
|
2018-10-20 20:36:17 +00:00
|
|
|
|
|
|
|
|
LL | '
|
|
|
|
| ______^
|
|
|
|
LL | | ';
|
2024-07-06 03:07:46 +00:00
|
|
|
| |_
|
|
|
|
|
|
|
|
|
help: escape the character
|
|
|
|
|
|
|
|
|
LL | '\n';
|
|
|
|
| ++
|
2018-10-20 20:36:17 +00:00
|
|
|
|
2021-01-23 20:48:31 +00:00
|
|
|
error: character constant must be escaped: `\r`
|
2020-01-08 18:25:42 +00:00
|
|
|
--> $DIR/bad-char-literals.rs:15:6
|
2018-10-20 20:36:17 +00:00
|
|
|
|
|
2024-07-09 16:46:09 +00:00
|
|
|
LL | '␍';
|
2024-07-06 03:07:46 +00:00
|
|
|
| ^
|
|
|
|
|
|
|
|
|
help: escape the character
|
|
|
|
|
|
|
|
|
LL | '\r';
|
|
|
|
| ++
|
2018-10-20 20:36:17 +00:00
|
|
|
|
2024-07-09 16:46:09 +00:00
|
|
|
error: character literal may only contain one codepoint
|
|
|
|
--> $DIR/bad-char-literals.rs:18:5
|
|
|
|
|
|
|
|
|
LL | '-␀-';
|
2024-07-09 17:00:19 +00:00
|
|
|
| ^^^^^
|
2024-07-09 16:46:09 +00:00
|
|
|
|
|
|
|
|
help: if you meant to write a string literal, use double quotes
|
|
|
|
|
|
|
|
|
LL | "-␀-";
|
2024-07-09 17:00:19 +00:00
|
|
|
| ~ ~
|
2024-07-09 16:46:09 +00:00
|
|
|
|
2021-01-23 20:48:31 +00:00
|
|
|
error: character constant must be escaped: `\t`
|
2024-07-09 16:46:09 +00:00
|
|
|
--> $DIR/bad-char-literals.rs:21:6
|
2018-10-20 20:36:17 +00:00
|
|
|
|
|
|
|
|
LL | ' ';
|
2024-07-06 03:07:46 +00:00
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
|
help: escape the character
|
|
|
|
|
|
|
|
|
LL | '\t';
|
|
|
|
| ++
|
2018-10-20 20:36:17 +00:00
|
|
|
|
2024-07-09 16:46:09 +00:00
|
|
|
error: aborting due to 5 previous errors
|
2018-10-20 20:36:17 +00:00
|
|
|
|