rust/tests/ui/parser/issues/issue-113203.rs
2023-08-07 22:40:09 +08:00

8 lines
232 B
Rust

// Checks what happens when we attempt to use the await keyword as a prefix. Span
// incorrectly emitted an `.await` in E0277 which does not exist
// edition:2018
fn main() {
await {}()
//~^ ERROR incorrect use of `await`
}