rust/src/test/ui/await-keyword/2018-edition-error.rs

14 lines
201 B
Rust
Raw Normal View History

// edition:2018
#![allow(non_camel_case_types)]
mod outer_mod {
pub mod await {
pub struct await;
}
}
use self::outer_mod::await::await;
fn main() {
match await { await => () }
}