]> git.lizzy.rs Git - rust.git/blob - src/test/ui/await-keyword/2015-edition-no-warnings-with-feature-gate.rs
Make "await" a pseudo-edition keyword
[rust.git] / src / test / ui / await-keyword / 2015-edition-no-warnings-with-feature-gate.rs
1 // compile-pass
2
3 #![feature(async_await)]
4 #![allow(non_camel_case_types)]
5 #![deny(keyword_idents)]
6
7 mod outer_mod {
8     pub mod await {
9         pub struct await;
10     }
11 }
12 use outer_mod::await::await;
13
14 fn main() {
15     match await { await => {} }
16 }