summaryrefslogtreecommitdiffstats
path: root/tests/ui/lexer/lex-bad-char-literals-1.stderr
blob: e6ff1f662bde9c9b85cd6ee359854cc865f640e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
error: numeric character escape is too short
  --> $DIR/lex-bad-char-literals-1.rs:2:6
   |
LL |     '\x1'
   |      ^^^

error: numeric character escape is too short
  --> $DIR/lex-bad-char-literals-1.rs:6:6
   |
LL |     "\x1"
   |      ^^^

error: unknown character escape: `\u{25cf}`
  --> $DIR/lex-bad-char-literals-1.rs:10:7
   |
LL |     '\●'
   |       ^ unknown character escape
   |
   = help: for more information, visit <https://static.rust-lang.org/doc/master/reference.html#literals>
help: if you meant to write a literal backslash (perhaps escaping in a regular expression), consider a raw string literal
   |
LL |     r"\●"
   |     ~~~~~

error: unknown character escape: `\u{25cf}`
  --> $DIR/lex-bad-char-literals-1.rs:14:7
   |
LL |     "\●"
   |       ^ unknown character escape
   |
   = help: for more information, visit <https://static.rust-lang.org/doc/master/reference.html#literals>
help: if you meant to write a literal backslash (perhaps escaping in a regular expression), consider a raw string literal
   |
LL |     r"\●"
   |     ~~~~~

error: aborting due to 4 previous errors