]> git.lizzy.rs Git - rust.git/blob - tests/ui/async-await/track-caller/async-block.rs
Rollup merge of #106960 - estebank:parse-anon-enums, r=cjgillot
[rust.git] / tests / ui / async-await / track-caller / async-block.rs
1 // edition:2021
2
3 #![feature(closure_track_caller, stmt_expr_attributes)]
4
5 fn main() {
6     let _ = #[track_caller] async {
7         //~^ ERROR attribute should be applied to a function definition [E0739]
8     };
9 }