summaryrefslogtreecommitdiffstats
path: root/tests/ui/typeck/issue-112385-while-assign-lhs-place-expr-ice.stderr
blob: c7d853428dd2e61f6c8f9ef5f8866f6482648626 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error[E0308]: mismatched types
  --> $DIR/issue-112385-while-assign-lhs-place-expr-ice.rs:7:11
   |
LL |     while Some(foo) = None {}
   |           ^^^^^^^^^^^^^^^^ expected `bool`, found `()`
   |
help: consider adding `let`
   |
LL |     while let Some(foo) = None {}
   |           +++

error: aborting due to 1 previous error

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