Fix tidy
This commit is contained in:
parent
ffa7ce4290
commit
1206549d1b
2 changed files with 2 additions and 2 deletions
|
@ -1,3 +1,3 @@
|
|||
fn main() {
|
||||
[0; 3][3u64 as usize]; //~ ERROR the len is 3 but the index is 3
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue