summaryrefslogtreecommitdiffstats
path: root/tests/ui/closures/binder/async-closure-with-binder.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/closures/binder/async-closure-with-binder.stderr')
-rw-r--r--tests/ui/closures/binder/async-closure-with-binder.stderr16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/ui/closures/binder/async-closure-with-binder.stderr b/tests/ui/closures/binder/async-closure-with-binder.stderr
new file mode 100644
index 000000000..1d4628b1a
--- /dev/null
+++ b/tests/ui/closures/binder/async-closure-with-binder.stderr
@@ -0,0 +1,16 @@
+error: `for<...>` binders on `async` closures are not currently supported
+ --> $DIR/async-closure-with-binder.rs:5:5
+ |
+LL | for<'a> async || ();
+ | ^^^^^^^
+
+error: implicit types in closure signatures are forbidden when `for<...>` is present
+ --> $DIR/async-closure-with-binder.rs:5:5
+ |
+LL | for<'a> async || ();
+ | -------^^^^^^^^^
+ | |
+ | `for<...>` is here
+
+error: aborting due to 2 previous errors
+