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