mirror of
https://git.proxmox.com/git/rustc
synced 2026-01-17 23:20:16 +00:00
8 lines
233 B
Rust
8 lines
233 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`
|
|
}
|