summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-20261.rs
blob: 528393606f3809293610f00a1137ccdf52e2accb (plain)
1
2
3
4
5
6
7
fn main() {
    // N.B., this (almost) typechecks when default binding modes are enabled.
    for (ref i,) in [].iter() {
        i.clone();
        //~^ ERROR type annotations needed
    }
}