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