fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
620 B24 linesraw
1error: character literal may only contain one codepoint
2  --> $DIR/issue-64732.rs:3:17
3   |
4LL |     let _foo = b'hello\0';
5   |                 ^^^^^^^^^
6   |
7help: if you meant to write a byte string literal, use double quotes
8   |
9LL |     let _foo = b"hello\0";
10   |                 ^^^^^^^^^
11
12error: character literal may only contain one codepoint
13  --> $DIR/issue-64732.rs:6:16
14   |
15LL |     let _bar = 'hello';
16   |                ^^^^^^^
17   |
18help: if you meant to write a `str` literal, use double quotes
19   |
20LL |     let _bar = "hello";
21   |                ^^^^^^^
22
23error: aborting due to 2 previous errors
24