1
Fork 0
This commit is contained in:
Oliver Scherer 2018-11-09 10:11:20 +01:00
parent ffa7ce4290
commit 1206549d1b
2 changed files with 2 additions and 2 deletions

View file

@ -1,3 +1,3 @@
fn main() {
[0; 3][3u64 as usize]; //~ ERROR the len is 3 but the index is 3
}
}

View file

@ -2,4 +2,4 @@ fn main() {
enum Enum { One=1 }
let xs=[0;1 as usize];
println!("{}", xs[Enum::One as usize]); //~ ERROR the len is 1 but the index is 1
}
}