summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/suggest-closure-return-type-1.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/suggestions/suggest-closure-return-type-1.stderr')
-rw-r--r--tests/ui/suggestions/suggest-closure-return-type-1.stderr14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/suggestions/suggest-closure-return-type-1.stderr b/tests/ui/suggestions/suggest-closure-return-type-1.stderr
new file mode 100644
index 000000000..f4c2eb7ff
--- /dev/null
+++ b/tests/ui/suggestions/suggest-closure-return-type-1.stderr
@@ -0,0 +1,14 @@
+error[E0282]: type annotations needed for `[_; 0]`
+ --> $DIR/suggest-closure-return-type-1.rs:4:18
+ |
+LL | unbound_drop(|| -> _ { [] });
+ | ^^^^^^^ -- type must be known at this point
+ |
+help: try giving this closure an explicit return type
+ |
+LL | unbound_drop(|| -> [_; 0] { [] });
+ | ~~~~~~
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0282`.