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