about summary refs log tree commit diff
path: root/tests/ui/rust-2018/async-ident-allowed.rs
blob: 342fafc67e20a443117c02c68fc915dba0e138b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
//@ edition:2015

#![deny(rust_2018_compatibility)]

// Don't make a suggestion for a raw identifier replacement unless raw
// identifiers are enabled.

fn main() {
    let async = 3; //~ ERROR: is a keyword
    //~^ WARN this is accepted in the current edition
}