diff options
Diffstat (limited to 'tests/ui/type-alias-impl-trait/closures_in_branches.stderr')
-rw-r--r-- | tests/ui/type-alias-impl-trait/closures_in_branches.stderr | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/ui/type-alias-impl-trait/closures_in_branches.stderr b/tests/ui/type-alias-impl-trait/closures_in_branches.stderr new file mode 100644 index 000000000..9cc15f14a --- /dev/null +++ b/tests/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: /* Type */| 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: /* Type */| x.len() + | ++++++++++++ + +error: aborting due to 2 previous errors + +For more information about this error, try `rustc --explain E0282`. |