]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rust-2018/async-ident.stderr
Rollup merge of #62351 - RalfJung:drop-in-place, r=cramertj
[rust.git] / src / test / ui / rust-2018 / async-ident.stderr
1 error: `async` is a keyword in the 2018 edition
2   --> $DIR/async-ident.rs:7:4
3    |
4 LL | fn async() {}
5    |    ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
6    |
7 note: lint level defined here
8   --> $DIR/async-ident.rs:2:9
9    |
10 LL | #![deny(keyword_idents)]
11    |         ^^^^^^^^^^^^^^
12    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2018 edition!
13    = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
14
15 error: `async` is a keyword in the 2018 edition
16   --> $DIR/async-ident.rs:12:7
17    |
18 LL |     ($async:expr, async) => {};
19    |       ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
20    |
21    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2018 edition!
22    = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
23
24 error: `async` is a keyword in the 2018 edition
25   --> $DIR/async-ident.rs:12:19
26    |
27 LL |     ($async:expr, async) => {};
28    |                   ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
29    |
30    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2018 edition!
31    = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
32
33 error: `async` is a keyword in the 2018 edition
34   --> $DIR/async-ident.rs:19:6
35    |
36 LL | foo!(async);
37    |      ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
38    |
39    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2018 edition!
40    = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
41
42 error: `async` is a keyword in the 2018 edition
43   --> $DIR/async-ident.rs:28:11
44    |
45 LL |     trait async {}
46    |           ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
47    |
48    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2018 edition!
49    = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
50
51 error: `async` is a keyword in the 2018 edition
52   --> $DIR/async-ident.rs:32:10
53    |
54 LL |     impl async for MyStruct {}
55    |          ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
56    |
57    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2018 edition!
58    = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
59
60 error: `async` is a keyword in the 2018 edition
61   --> $DIR/async-ident.rs:38:12
62    |
63 LL |     static async: u32 = 0;
64    |            ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
65    |
66    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2018 edition!
67    = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
68
69 error: `async` is a keyword in the 2018 edition
70   --> $DIR/async-ident.rs:44:11
71    |
72 LL |     const async: u32 = 0;
73    |           ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
74    |
75    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2018 edition!
76    = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
77
78 error: `async` is a keyword in the 2018 edition
79   --> $DIR/async-ident.rs:50:15
80    |
81 LL | impl Foo { fn async() {} }
82    |               ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
83    |
84    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2018 edition!
85    = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
86
87 error: `async` is a keyword in the 2018 edition
88   --> $DIR/async-ident.rs:55:12
89    |
90 LL |     struct async {}
91    |            ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
92    |
93    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2018 edition!
94    = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
95
96 error: `async` is a keyword in the 2018 edition
97   --> $DIR/async-ident.rs:58:9
98    |
99 LL |     let async: async = async {};
100    |         ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
101    |
102    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2018 edition!
103    = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
104
105 error: `async` is a keyword in the 2018 edition
106   --> $DIR/async-ident.rs:58:16
107    |
108 LL |     let async: async = async {};
109    |                ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
110    |
111    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2018 edition!
112    = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
113
114 error: `async` is a keyword in the 2018 edition
115   --> $DIR/async-ident.rs:58:24
116    |
117 LL |     let async: async = async {};
118    |                        ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
119    |
120    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2018 edition!
121    = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
122
123 error: `async` is a keyword in the 2018 edition
124   --> $DIR/async-ident.rs:69:19
125    |
126 LL |     () => (pub fn async() {})
127    |                   ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
128    |
129    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2018 edition!
130    = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
131
132 error: `async` is a keyword in the 2018 edition
133   --> $DIR/async-ident.rs:76:6
134    |
135 LL |     (async) => (1)
136    |      ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
137    |
138    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2018 edition!
139    = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
140
141 error: aborting due to 15 previous errors
142