summaryrefslogtreecommitdiffstats
path: root/src/test/ui/async-await/track-caller/async-closure-gate.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/async-await/track-caller/async-closure-gate.rs')
-rw-r--r--src/test/ui/async-await/track-caller/async-closure-gate.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/async-await/track-caller/async-closure-gate.rs b/src/test/ui/async-await/track-caller/async-closure-gate.rs
new file mode 100644
index 000000000..d9d556855
--- /dev/null
+++ b/src/test/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]
+ };
+}