about summary refs log tree commit diff
path: root/tests/ui/async-await/async-outside-of-await-issue-121096.rs
blob: e3999035ef91fd8192f163061edea19584fb5d0b (plain)
1
2
3
4
5
6
7
8
9
//@ edition:2021

fn main() {
    async {
        use std::ops::Add;
        let _ = 1.add(3);
    }.await
    //~^ ERROR `await` is only allowed inside `async` functions and blocks
}