mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
710dcbd381
Replace "integral variable" with "integer" and replace "floating-point variable" with "floating-point number" to make the message less confusing.
11 lines
250 B
Rust
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
|
|
}
|