rust/tests/ui/async-await/track-caller/async-block.rs
2023-01-11 09:32:08 +00:00

10 lines
211 B
Rust

// 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]
};
}