]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/unicode-character-literal.stderr
Auto merge of #100678 - GuillaumeGomez:improve-rustdoc-json-tests, r=aDotInTheVoid
[rust.git] / src / test / ui / parser / unicode-character-literal.stderr
1 error: character literal may only contain one codepoint
2   --> $DIR/unicode-character-literal.rs:7:18
3    |
4 LL |     let _spade = '♠️';
5    |                  ^^^
6    |
7 note: this `♠` is followed by the combining mark `\u{fe0f}`
8   --> $DIR/unicode-character-literal.rs:7:19
9    |
10 LL |     let _spade = '♠️';
11    |                   ^
12 help: if you meant to write a `str` literal, use double quotes
13    |
14 LL |     let _spade = "♠️";
15    |                  ~~~
16
17 error: character literal may only contain one codepoint
18   --> $DIR/unicode-character-literal.rs:12:14
19    |
20 LL |     let _s = 'ṩ̂̊';
21    |              ^^^
22    |
23 note: this `s` is followed by the combining marks `\u{323}\u{307}\u{302}\u{30a}`
24   --> $DIR/unicode-character-literal.rs:12:15
25    |
26 LL |     let _s = 'ṩ̂̊';
27    |               ^
28 help: if you meant to write a `str` literal, use double quotes
29    |
30 LL |     let _s = "ṩ̂̊";
31    |              ~~~
32
33 error: character literal may only contain one codepoint
34   --> $DIR/unicode-character-literal.rs:17:14
35    |
36 LL |     let _a = 'Å';
37    |              ^-^
38    |               |
39    |               help: consider using the normalized form `\u{c5}` of this character: `Å`
40    |
41 note: this `A` is followed by the combining mark `\u{30a}`
42   --> $DIR/unicode-character-literal.rs:17:15
43    |
44 LL |     let _a = 'Å';
45    |               ^
46
47 error: aborting due to 3 previous errors
48