2018-10-20 23:36:17 +03:00
|
|
|
error: character literal may only contain one codepoint
|
2019-01-20 14:53:28 +09:00
|
|
|
--> $DIR/lex-bad-char-literals-5.rs:1:18
|
2018-10-20 23:36:17 +03:00
|
|
|
|
|
2019-03-13 00:47:36 -04:00
|
|
|
LL | static c: char = '\x10\x10';
|
2019-01-20 14:53:28 +09:00
|
|
|
| ^^^^^^^^^^
|
2019-10-23 22:20:58 -07:00
|
|
|
|
|
2024-03-13 23:52:04 +00:00
|
|
|
help: if you meant to write a string literal, use double quotes
|
2018-10-20 23:36:17 +03:00
|
|
|
|
|
2019-03-13 00:47:36 -04:00
|
|
|
LL | static c: char = "\x10\x10";
|
2024-03-09 01:07:23 +00:00
|
|
|
| ~ ~
|
2018-10-20 23:36:17 +03:00
|
|
|
|
2019-01-18 05:24:17 +09:00
|
|
|
error: character literal may only contain one codepoint
|
2019-01-20 14:53:28 +09:00
|
|
|
--> $DIR/lex-bad-char-literals-5.rs:5:20
|
2019-01-18 05:24:17 +09:00
|
|
|
|
|
2019-03-13 00:47:36 -04:00
|
|
|
LL | let ch: &str = '\x10\x10';
|
2019-01-18 05:24:17 +09:00
|
|
|
| ^^^^^^^^^^
|
2019-10-23 22:20:58 -07:00
|
|
|
|
|
2024-03-13 23:52:04 +00:00
|
|
|
help: if you meant to write a string literal, use double quotes
|
2019-01-18 05:24:17 +09:00
|
|
|
|
|
2019-03-13 00:47:36 -04:00
|
|
|
LL | let ch: &str = "\x10\x10";
|
2024-03-09 01:07:23 +00:00
|
|
|
| ~ ~
|
2019-01-18 05:24:17 +09:00
|
|
|
|
2019-01-20 14:53:28 +09:00
|
|
|
error: aborting due to 2 previous errors
|
2018-10-20 23:36:17 +03:00
|
|
|
|