blob: 4c21cbfc61d435188236154561f7ff20b7e7a681 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
fn main() {
let tiles = Default::default();
for row in &mut tiles {
for tile in row {
*tile = 0;
//~^ ERROR type annotations needed
//~| NOTE cannot infer type
}
}
let tiles: [[usize; 3]; 3] = tiles;
}
|