diff options
Diffstat (limited to 'tests/ui/async-await/track-caller/async-closure-gate.rs')
| -rw-r--r-- | tests/ui/async-await/track-caller/async-closure-gate.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/async-await/track-caller/async-closure-gate.rs b/tests/ui/async-await/track-caller/async-closure-gate.rs new file mode 100644 index 00000000000..d9d55685599 --- /dev/null +++ b/tests/ui/async-await/track-caller/async-closure-gate.rs @@ -0,0 +1,9 @@ +// edition:2021 + +#![feature(async_closure, stmt_expr_attributes)] + +fn main() { + let _ = #[track_caller] async || { + //~^ ERROR `#[track_caller]` on closures is currently unstable [E0658] + }; +} |
