]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rust-2021/reserved-prefixes-migration.stderr
Auto merge of #86492 - hyd-dev:no-mangle-method, r=petrochenkov
[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 <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/reserving-syntax.html>
14 help: insert whitespace here to avoid this being parsed as a prefix in Rust 2021
15    |
16 LL -     m2!(z"hey");
17 LL +     m2!(z "hey");
18    | 
19
20 warning: prefix `prefix` is unknown
21   --> $DIR/reserved-prefixes-migration.rs:19:9
22    |
23 LL |     m2!(prefix"hey");
24    |         ^^^^^^ unknown prefix
25    |
26    = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
27    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/reserving-syntax.html>
28 help: insert whitespace here to avoid this being parsed as a prefix in Rust 2021
29    |
30 LL -     m2!(prefix"hey");
31 LL +     m2!(prefix "hey");
32    | 
33
34 warning: prefix `hey` is unknown
35   --> $DIR/reserved-prefixes-migration.rs:22:9
36    |
37 LL |     m3!(hey#123);
38    |         ^^^ unknown prefix
39    |
40    = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
41    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/reserving-syntax.html>
42 help: insert whitespace here to avoid this being parsed as a prefix in Rust 2021
43    |
44 LL -     m3!(hey#123);
45 LL +     m3!(hey #123);
46    | 
47
48 warning: prefix `hey` is unknown
49   --> $DIR/reserved-prefixes-migration.rs:25:9
50    |
51 LL |     m3!(hey#hey);
52    |         ^^^ unknown prefix
53    |
54    = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
55    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/reserving-syntax.html>
56 help: insert whitespace here to avoid this being parsed as a prefix in Rust 2021
57    |
58 LL -     m3!(hey#hey);
59 LL +     m3!(hey #hey);
60    | 
61
62 warning: prefix `kind` is unknown
63   --> $DIR/reserved-prefixes-migration.rs:35:14
64    |
65 LL |     #name = #kind#value
66    |              ^^^^ unknown prefix
67    |
68    = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
69    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/reserving-syntax.html>
70 help: insert whitespace here to avoid this being parsed as a prefix in Rust 2021
71    |
72 LL -     #name = #kind#value
73 LL +     #name = #kind #value
74    | 
75
76 warning: 5 warnings emitted
77