rust/src/test/ui/issues/issue-54348.rs
Oliver Scherer 61efc3b71b Update tests
2018-12-04 10:06:05 +01:00

6 lines
145 B
Rust

fn main() {
[1][0u64 as usize];
[1][1.5 as usize]; //~ ERROR index out of bounds
[1][1u64 as usize]; //~ ERROR index out of bounds
}