summaryrefslogtreecommitdiffstats
path: root/tests/ui/closures/binder/implicit-return.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/closures/binder/implicit-return.stderr')
-rw-r--r--tests/ui/closures/binder/implicit-return.stderr10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/closures/binder/implicit-return.stderr b/tests/ui/closures/binder/implicit-return.stderr
new file mode 100644
index 000000000..5bfb97113
--- /dev/null
+++ b/tests/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
+