summaryrefslogtreecommitdiffstats
path: root/src/test/ui/type-alias-impl-trait/closures_in_branches.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/type-alias-impl-trait/closures_in_branches.stderr')
-rw-r--r--src/test/ui/type-alias-impl-trait/closures_in_branches.stderr25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/test/ui/type-alias-impl-trait/closures_in_branches.stderr b/src/test/ui/type-alias-impl-trait/closures_in_branches.stderr
new file mode 100644
index 000000000..48b7946ea
--- /dev/null
+++ b/src/test/ui/type-alias-impl-trait/closures_in_branches.stderr
@@ -0,0 +1,25 @@
+error[E0282]: type annotations needed
+ --> $DIR/closures_in_branches.rs:7:10
+ |
+LL | |x| x.len()
+ | ^ - type must be known at this point
+ |
+help: consider giving this closure parameter an explicit type
+ |
+LL | |x: _| x.len()
+ | +++
+
+error[E0282]: type annotations needed
+ --> $DIR/closures_in_branches.rs:21:10
+ |
+LL | |x| x.len()
+ | ^ - type must be known at this point
+ |
+help: consider giving this closure parameter an explicit type
+ |
+LL | |x: _| x.len()
+ | +++
+
+error: aborting due to 2 previous errors
+
+For more information about this error, try `rustc --explain E0282`.