summaryrefslogtreecommitdiffstats
path: root/src/test/ui/closures/binder/implicit-return.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/closures/binder/implicit-return.stderr')
-rw-r--r--src/test/ui/closures/binder/implicit-return.stderr10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/closures/binder/implicit-return.stderr b/src/test/ui/closures/binder/implicit-return.stderr
new file mode 100644
index 000000000..5bfb97113
--- /dev/null
+++ b/src/test/ui/closures/binder/implicit-return.stderr
@@ -0,0 +1,10 @@
+error: implicit types in closure signatures are forbidden when `for<...>` is present
+ --> $DIR/implicit-return.rs:4:34
+ |
+LL | let _f = for<'a> |_: &'a ()| {};
+ | ------- ^
+ | |
+ | `for<...>` is here
+
+error: aborting due to previous error
+