about summary refs log tree commit diff
path: root/tests/ui/consts/const-tup-index-span.rs
blob: 4cb7143b4351f4826c0e55809c696c76f4f84929 (plain)
1
2
3
4
5
6
7
8
9
10
// 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() {
}