2019-09-25 20:18:25 -04:00
|
|
|
error: character literal may only contain one codepoint
|
2021-01-23 12:48:31 -08:00
|
|
|
--> $DIR/issue-64732.rs:3:16
|
2019-09-25 20:18:25 -04:00
|
|
|
|
|
|
|
|
|
LL | let _foo = b'hello\0';
|
2021-01-23 12:48:31 -08:00
|
|
|
| ^^^^^^^^^^
|
2019-10-23 22:20:58 -07:00
|
|
|
|
|
2019-09-25 20:18:25 -04:00
|
|
|
help: if you meant to write a byte string literal, use double quotes
|
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - let _foo = b'hello\0';
|
|
|
|
|
LL + let _foo = b"hello\0";
|
|
|
|
|
|
|
2019-09-25 20:18:25 -04:00
|
|
|
|
|
|
|
|
error: character literal may only contain one codepoint
|
|
|
|
|
--> $DIR/issue-64732.rs:6:16
|
|
|
|
|
|
|
|
|
|
|
LL | let _bar = 'hello';
|
|
|
|
|
| ^^^^^^^
|
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-09-25 20:18:25 -04:00
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - let _bar = 'hello';
|
|
|
|
|
LL + let _bar = "hello";
|
|
|
|
|
|
|
2019-09-25 20:18:25 -04:00
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|