rust/tests/ui/consts/const-tup-index-span.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
174 B
Rust
Raw Normal View History

2015-12-09 09:55:29 -06:00
// Test spans of errors
2016-08-24 14:38:14 -05:00
const TUP: (usize,) = 5usize << 64;
//~^ ERROR mismatched types
//~| expected `(usize,)`, found `usize`
2015-12-09 09:55:29 -06:00
const ARR: [i32; TUP.0] = [];
fn main() {
}