15 lines
400 B
Rust
15 lines
400 B
Rust
fn main() {
|
|
let tiles = Default::default();
|
|
for row in &mut tiles {
|
|
for tile in row {
|
|
//~^ NOTE the element type for this iterator is not specified
|
|
*tile = 0;
|
|
//~^ ERROR type annotations needed
|
|
//~| NOTE cannot infer type
|
|
//~| NOTE type must be known at this point
|
|
}
|
|
}
|
|
|
|
let tiles: [[usize; 3]; 3] = tiles;
|
|
}
|