summary refs log tree commit diff
path: root/tests/ui/editions/edition-cstr-2015-2018.stderr
blob: b864df308ef99c6d9b75e7475e493924b5d407f3 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `"str"`
  --> $DIR/edition-cstr-2015-2018.rs:27:6
   |
LL |     c"str";
   |      ^^^^^ expected one of 8 possible tokens
   |
   = note: you may be trying to write a c-string literal
   = note: c-string literals require Rust 2021 or later
   = help: pass `--edition 2021` to `rustc`
   = note: for more on editions, read https://doc.rust-lang.org/edition-guide

error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `"str"`
  --> $DIR/edition-cstr-2015-2018.rs:37:7
   |
LL |     cr"str";
   |       ^^^^^ expected one of 8 possible tokens
   |
   = note: you may be trying to write a c-string literal
   = note: c-string literals require Rust 2021 or later
   = help: pass `--edition 2021` to `rustc`
   = note: for more on editions, read https://doc.rust-lang.org/edition-guide

error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `#`
  --> $DIR/edition-cstr-2015-2018.rs:47:7
   |
LL |     cr##"str"##;
   |       ^ expected one of 8 possible tokens
   |
   = note: you may be trying to write a c-string literal
   = note: c-string literals require Rust 2021 or later
   = help: pass `--edition 2021` to `rustc`
   = note: for more on editions, read https://doc.rust-lang.org/edition-guide

error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `"str"`
  --> $DIR/edition-cstr-2015-2018.rs:57:7
   |
LL |     c "str";
   |       ^^^^^ expected one of 8 possible tokens

error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `"str"`
  --> $DIR/edition-cstr-2015-2018.rs:1:44
   |
LL | macro_rules! construct { ($x:ident) => { $x"str" } }
   |                                            ^^^^^ expected one of 8 possible tokens
...
LL |     construct!(c);
   |     ------------- in this macro invocation
   |
   = note: this error originates in the macro `construct` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `"str"`
  --> $DIR/edition-cstr-2015-2018.rs:5:33
   |
LL | macro_rules! contain { () => { c"str" } }
   |                                 ^^^^^ expected one of 8 possible tokens
...
LL |     contain!();
   |     ---------- in this macro invocation
   |
   = note: you may be trying to write a c-string literal
   = note: c-string literals require Rust 2021 or later
   = help: pass `--edition 2021` to `rustc`
   = note: for more on editions, read https://doc.rust-lang.org/edition-guide
   = note: this error originates in the macro `contain` (in Nightly builds, run with -Z macro-backtrace for more info)

error: aborting due to 6 previous errors