]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rust-2021/reserved-prefixes-migration.stderr
Rollup merge of #87596 - jesyspa:issue-87318-hidden-whitespace, r=estebank
[rust.git] / src / test / ui / rust-2021 / reserved-prefixes-migration.stderr
1 warning: prefix `z` is unknown
2   --> $DIR/reserved-prefixes-migration.rs:16:9
3    |
4 LL |     m2!(z"hey");
5    |         ^ unknown prefix
6    |
7 note: the lint level is defined here
8   --> $DIR/reserved-prefixes-migration.rs:5:9
9    |
10 LL | #![warn(rust_2021_prefixes_incompatible_syntax)]
11    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12    = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
13    = note: for more information, see issue #84978 <https://github.com/rust-lang/rust/issues/84978>
14 help: insert whitespace here to avoid this being parsed as a prefix in Rust 2021
15    |
16 LL |     m2!(z "hey");
17    |          --
18
19 warning: prefix `prefix` is unknown
20   --> $DIR/reserved-prefixes-migration.rs:19:9
21    |
22 LL |     m2!(prefix"hey");
23    |         ^^^^^^ unknown prefix
24    |
25    = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
26    = note: for more information, see issue #84978 <https://github.com/rust-lang/rust/issues/84978>
27 help: insert whitespace here to avoid this being parsed as a prefix in Rust 2021
28    |
29 LL |     m2!(prefix "hey");
30    |               --
31
32 warning: prefix `hey` is unknown
33   --> $DIR/reserved-prefixes-migration.rs:22:9
34    |
35 LL |     m3!(hey#123);
36    |         ^^^ unknown prefix
37    |
38    = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
39    = note: for more information, see issue #84978 <https://github.com/rust-lang/rust/issues/84978>
40 help: insert whitespace here to avoid this being parsed as a prefix in Rust 2021
41    |
42 LL |     m3!(hey #123);
43    |            --
44
45 warning: prefix `hey` is unknown
46   --> $DIR/reserved-prefixes-migration.rs:25:9
47    |
48 LL |     m3!(hey#hey);
49    |         ^^^ unknown prefix
50    |
51    = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
52    = note: for more information, see issue #84978 <https://github.com/rust-lang/rust/issues/84978>
53 help: insert whitespace here to avoid this being parsed as a prefix in Rust 2021
54    |
55 LL |     m3!(hey #hey);
56    |            --
57
58 warning: prefix `kind` is unknown
59   --> $DIR/reserved-prefixes-migration.rs:35:14
60    |
61 LL |     #name = #kind#value
62    |              ^^^^ unknown prefix
63    |
64    = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
65    = note: for more information, see issue #84978 <https://github.com/rust-lang/rust/issues/84978>
66 help: insert whitespace here to avoid this being parsed as a prefix in Rust 2021
67    |
68 LL |     #name = #kind #value
69    |                  --
70
71 warning: 5 warnings emitted
72