2018-07-15 22:52:41 -05:00
|
|
|
fn main() {
|
|
|
|
let tiles = Default::default();
|
|
|
|
for row in &mut tiles {
|
|
|
|
for tile in row {
|
|
|
|
*tile = 0;
|
|
|
|
//~^ ERROR type annotations needed
|
2018-07-20 11:17:55 -05:00
|
|
|
//~| NOTE cannot infer type
|
2018-07-15 22:52:41 -05:00
|
|
|
}
|
|
|
|
}
|
2018-07-16 16:05:42 -05:00
|
|
|
|
2018-07-15 22:52:41 -05:00
|
|
|
let tiles: [[usize; 3]; 3] = tiles;
|
|
|
|
}
|