summaryrefslogtreecommitdiffstats
path: root/tests/ui/async-await/track-caller/async-block.rs
blob: 8e81387c34bd056013659ffca95f4840e031f7d2 (plain)
1
2
3
4
5
6
7
8
9
// edition:2021

#![feature(closure_track_caller, stmt_expr_attributes)]

fn main() {
    let _ = #[track_caller] async {
        //~^ ERROR attribute should be applied to a function definition [E0739]
    };
}