]>
git.proxmox.com Git - rustc.git/blob - tests/ui/async-await/issues/non-async-enclosing-span.rs
3 async
fn do_the_thing() -> u8 {
6 // #63398: point at the enclosing scope and not the previously seen closure
7 fn main() { //~ NOTE this is not `async`
9 let y
= do_the_thing().await
; //~ ERROR `await` is only allowed inside `async` functions
10 //~^ NOTE only allowed inside `async` functions and blocks