mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
28 lines
621 B
Rust
28 lines
621 B
Rust
//@ edition:2021
|
|
//@ revisions: afn nofeat
|
|
|
|
#![feature(stmt_expr_attributes)]
|
|
#![cfg_attr(afn, feature(async_fn_track_caller))]
|
|
|
|
fn main() {
|
|
let _ = #[track_caller] async {
|
|
//~^ ERROR `#[track_caller]` on closures is currently unstable [E0658]
|
|
};
|
|
}
|
|
|
|
#[track_caller]
|
|
async fn foo() {
|
|
let _ = #[track_caller] async {
|
|
//~^ ERROR `#[track_caller]` on closures is currently unstable [E0658]
|
|
};
|
|
}
|
|
|
|
#[track_caller]
|
|
async fn foo2() {
|
|
let _ = async {
|
|
let _ = #[track_caller] async {
|
|
//~^ ERROR `#[track_caller]` on closures is currently unstable [E0658]
|
|
};
|
|
};
|
|
}
|