rust/tests/ui/parser/issues/issue-113203.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
233 B
Rust
Raw Normal View History

2023-08-07 14:10:21 +00:00
// 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 {}()
2023-08-07 14:31:32 +00:00
//~^ ERROR incorrect use of `await`
2023-08-07 14:10:21 +00:00
}