blob: c7d853428dd2e61f6c8f9ef5f8866f6482648626 [file] [log] [blame]
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`.