summaryrefslogtreecommitdiffstats
path: root/tests/ui/inference/issue-113354.stderr
blob: 045a5aa7bf0eacd35d9a4843cb969ef28ff3a999 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error[E0308]: mismatched types
  --> $DIR/issue-113354.rs:3:24
   |
LL |     let _ = || { while Some(_) = Some(1) { } };
   |                        ^^^^^^^^^^^^^^^^^ expected `bool`, found `()`
   |
help: consider adding `let`
   |
LL |     let _ = || { while let Some(_) = Some(1) { } };
   |                        +++

error: aborting due to previous error

For more information about this error, try `rustc --explain E0308`.