]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-51116.rs
Rollup merge of #92942 - Xaeroxe:raw_arg, r=dtolnay
[rust.git] / src / test / ui / issues / issue-51116.rs
1 fn main() {
2     let tiles = Default::default();
3     for row in &mut tiles {
4         for tile in row {
5             //~^ NOTE the element type for this iterator is not specified
6             *tile = 0;
7             //~^ ERROR type annotations needed
8             //~| NOTE cannot infer type
9             //~| NOTE type must be known at this point
10         }
11     }
12
13     let tiles: [[usize; 3]; 3] = tiles;
14 }