]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-20261.rs
Auto merge of #55519 - fhartwig:hashmap-index-example, r=Centril
[rust.git] / src / test / ui / issues / issue-20261.rs
1 fn main() {
2     // N.B., this (almost) typechecks when default binding modes are enabled.
3     for (ref i,) in [].iter() {
4         i.clone();
5         //~^ ERROR type annotations needed
6     }
7 }