- Notifications
You must be signed in to change notification settings - Fork 13.9k
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lints
Description
When compiling this:
fn main() { if let Some(x) = Some(5) { true } }<anon>:2:5: 4:6 error: match arms have incompatible types: expected `bool`, found `()` (expected bool, found ()) <anon>:2 if let Some(x) = Some(5) { <anon>:3 true <anon>:4 } <anon>:2:5: 4:6 note: match arm with an incompatible type <anon>:2 if let Some(x) = Some(5) { <anon>:3 true <anon>:4 } Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lints