summaryrefslogtreecommitdiffstats
path: root/tests/ui/inference/issue-113354.stderr
blob: 27cc7a33238e948bbeab2377130f21b200d55fc0 (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 1 previous error

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