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