]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rust-2018/async-ident-allowed.rs
Auto merge of #106025 - matthiaskrgr:rollup-vz5rqah, r=matthiaskrgr
[rust.git] / src / test / ui / rust-2018 / async-ident-allowed.rs
1 // edition:2015
2
3 #![deny(rust_2018_compatibility)]
4
5 // Don't make a suggestion for a raw identifier replacement unless raw
6 // identifiers are enabled.
7
8 fn main() {
9     let async = 3; //~ ERROR: is a keyword
10     //~^ WARN this is accepted in the current edition
11 }