]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/issues/issue-64732.stderr
Rollup merge of #106717 - klensy:typo, r=lcnr
[rust.git] / tests / ui / parser / issues / issue-64732.stderr
1 error: character literal may only contain one codepoint
2   --> $DIR/issue-64732.rs:3:16
3    |
4 LL |     let _foo = b'hello\0';
5    |                ^^^^^^^^^^
6    |
7 help: if you meant to write a byte string literal, use double quotes
8    |
9 LL |     let _foo = b"hello\0";
10    |                ~~~~~~~~~~
11
12 error: character literal may only contain one codepoint
13   --> $DIR/issue-64732.rs:6:16
14    |
15 LL |     let _bar = 'hello';
16    |                ^^^^^^^
17    |
18 help: if you meant to write a `str` literal, use double quotes
19    |
20 LL |     let _bar = "hello";
21    |                ~~~~~~~
22
23 error: aborting due to 2 previous errors
24