Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
type
/
type-mismatch-multiple.rs
blob: 55d6ceef1ded0d9ff151eb4defaa19ac238d19a3 [
file
] [
log
] [
blame
]
// Checking that the compiler reports multiple type errors at once
fn
main
()
{
let
a
:
bool
=
1
;
let
b
:
i32
=
true
;
}
//~^ ERROR mismatched types
//~| expected `bool`, found integer
//~| ERROR mismatched types
//~| expected `i32`, found `bool`