mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 18:27:37 +00:00
11 lines
215 B
Rust
11 lines
215 B
Rust
// Test spans of errors
|
|
|
|
const TUP: (usize,) = 5usize << 64;
|
|
//~^ ERROR mismatched types
|
|
//~| NOTE expected `(usize,)`, found `usize`
|
|
//~| NOTE expected tuple `(usize,)`
|
|
const ARR: [i32; TUP.0] = [];
|
|
|
|
fn main() {
|
|
}
|