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