-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsA-parserArea: The lexing & parsing of Rust source code to an ASTArea: The lexing & parsing of Rust source code to an AST

Description
fn main() {
let a = if true {
0
} else if false {
1
};
}
./example.rs:4:20: 6:5 error: mismatched types: expected `()` but found `<VI1>` (expected () but found integral variable)
./example.rs:4 } else if false {
./example.rs:5 1
./example.rs:6 };
./example.rs:4:11: 6:5 error: mismatched types: expected `<VI0>` but found `()` (expected integral variable but found ())
./example.rs:4 } else if false {
./example.rs:5 1
./example.rs:6 };
error: aborting due to 2 previous errors
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsA-parserArea: The lexing & parsing of Rust source code to an ASTArea: The lexing & parsing of Rust source code to an AST