2015-03-15 15:30:37 -05:00
|
|
|
fn main() {
|
2018-11-26 20:59:49 -06:00
|
|
|
// N.B., this (almost) typechecks when default binding modes are enabled.
|
2017-10-20 07:59:55 -05:00
|
|
|
for (ref i,) in [].iter() {
|
2015-03-15 15:30:37 -05:00
|
|
|
i.clone();
|
2018-03-26 16:39:29 -05:00
|
|
|
//~^ ERROR type annotations needed
|
2015-03-15 15:30:37 -05:00
|
|
|
}
|
|
|
|
}
|