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