]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rust-2018/async-ident.stderr
Lint the use of async as an identifier
[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:17:4
3    |
4 LL | fn async() {} //~ ERROR 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:12:9
9    |
10 LL | #![deny(rust_2018_idioms)]
11    |         ^^^^^^^^^^^^^^^^
12    = note: #[deny(async_idents)] implied by #[deny(rust_2018_idioms)]
13
14 error: `async` is a keyword in the 2018 edition
15   --> $DIR/async-ident.rs:21:7
16    |
17 LL |     ($async:expr, async) => {};
18    |       ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
19
20 error: `async` is a keyword in the 2018 edition
21   --> $DIR/async-ident.rs:21:19
22    |
23 LL |     ($async:expr, async) => {};
24    |                   ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
25
26 error: aborting due to 3 previous errors
27