summaryrefslogtreecommitdiffstats
path: root/tests/ui/rfcs/rfc-3348-c-string-literals/non-ascii.stderr
blob: 47361fb61d2712c02fead5ef182a0048e431dc4c (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: prefix `c` is unknown
  --> $DIR/non-ascii.rs:9:9
   |
LL |         c"\xEF\x80🦀\u{1F980}".to_bytes_with_nul(),
   |         ^ unknown prefix
   |
   = note: prefixed identifiers and literals are reserved since Rust 2021
help: consider inserting whitespace here
   |
LL |         c "\xEF\x80🦀\u{1F980}".to_bytes_with_nul(),
   |          +

error: out of range hex escape
  --> $DIR/non-ascii.rs:9:11
   |
LL |         c"\xEF\x80🦀\u{1F980}".to_bytes_with_nul(),
   |           ^^^^ must be a character in the range [\x00-\x7f]

error: out of range hex escape
  --> $DIR/non-ascii.rs:9:15
   |
LL |         c"\xEF\x80🦀\u{1F980}".to_bytes_with_nul(),
   |               ^^^^ must be a character in the range [\x00-\x7f]

error: no rules expected the token `"\xEF\x80🦀\u{1F980}"`
  --> $DIR/non-ascii.rs:9:10
   |
LL |         c"\xEF\x80🦀\u{1F980}".to_bytes_with_nul(),
   |          -^^^^^^^^^^^^^^^^^^^^
   |          |
   |          no rules expected this token in macro call
   |          help: missing comma here
   |
note: while trying to match `,`
  --> $SRC_DIR/core/src/macros/mod.rs:LL:COL

error: aborting due to 4 previous errors