summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/const-tup-index-span.rs
blob: e77d392e6940282029a11554d11c4c0115a3e6b3 (plain)
1
2
3
4
5
6
7
8
9
// Test spans of errors

const TUP: (usize,) = 5usize << 64;
//~^ ERROR mismatched types
//~| expected `(usize,)`, found `usize`
const ARR: [i32; TUP.0] = [];

fn main() {
}