2018-07-15 20:52:41 -07: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 09:17:55 -07:00
|
|
|
//~| NOTE cannot infer type
|
2018-07-15 20:52:41 -07:00
|
|
|
}
|
|
|
|
}
|
2018-07-16 14:05:42 -07:00
|
|
|
|
2018-07-15 20:52:41 -07:00
|
|
|
let tiles: [[usize; 3]; 3] = tiles;
|
|
|
|
}
|