2018-09-20 19:36:31 -05:00
|
|
|
// edition:2018
|
|
|
|
#![allow(non_camel_case_types)]
|
|
|
|
|
|
|
|
mod outer_mod {
|
2019-04-18 14:55:23 -05:00
|
|
|
pub mod await { //~ ERROR expected identifier
|
|
|
|
pub struct await; //~ ERROR expected identifier
|
2018-09-20 19:36:31 -05:00
|
|
|
}
|
|
|
|
}
|
2019-04-18 14:55:23 -05:00
|
|
|
use self::outer_mod::await::await; //~ ERROR expected identifier
|
2019-09-28 11:15:06 -05:00
|
|
|
//~^ ERROR expected identifier, found keyword `await`
|
2018-09-20 19:36:31 -05:00
|
|
|
|
2019-09-28 11:15:06 -05:00
|
|
|
macro_rules! await { () => {}; } //~ ERROR expected identifier, found keyword `await`
|
2019-07-01 23:46:35 -05:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
await!(); //~ ERROR expected expression, found `)`
|
|
|
|
}
|