2019-04-18 12:55:23 -07:00
|
|
|
// edition:2018
|
|
|
|
|
|
|
|
#![allow(non_camel_case_types)]
|
|
|
|
|
|
|
|
mod outer_mod {
|
2019-09-28 09:15:06 -07:00
|
|
|
pub mod await { //~ ERROR expected identifier, found keyword `await`
|
|
|
|
pub struct await; //~ ERROR expected identifier, found keyword `await`
|
2019-04-18 12:55:23 -07:00
|
|
|
}
|
|
|
|
}
|
2019-09-28 09:15:06 -07:00
|
|
|
use self::outer_mod::await::await; //~ ERROR expected identifier, found keyword `await`
|
|
|
|
//~^ ERROR expected identifier, found keyword `await`
|
2019-04-18 12:55:23 -07:00
|
|
|
|
|
|
|
struct Foo { await: () }
|
2019-09-28 09:15:06 -07:00
|
|
|
//~^ ERROR expected identifier, found keyword `await`
|
2019-04-18 12:55:23 -07:00
|
|
|
|
|
|
|
impl Foo { fn await() {} }
|
2019-09-28 09:15:06 -07:00
|
|
|
//~^ ERROR expected identifier, found keyword `await`
|
2019-04-18 12:55:23 -07:00
|
|
|
|
|
|
|
macro_rules! await {
|
2019-09-28 09:15:06 -07:00
|
|
|
//~^ ERROR expected identifier, found keyword `await`
|
2019-04-18 12:55:23 -07:00
|
|
|
() => {}
|
|
|
|
}
|
|
|
|
|
2019-05-15 19:47:18 -07:00
|
|
|
fn main() {}
|