rust/src/test/ui/issues/issue-4968.rs
Yuning Zhang 710dcbd381 Improve type mismatch error messages
Replace "integral variable" with "integer" and replace
"floating-point variable" with "floating-point number" to make the
message less confusing.
2018-12-31 20:43:08 -05:00

11 lines
250 B
Rust

// Regression test for issue #4968
const A: (isize,isize) = (4,2);
fn main() {
match 42 { A => () }
//~^ ERROR mismatched types
//~| expected type `{integer}`
//~| found type `(isize, isize)`
//~| expected integer, found tuple
}