2015-01-22 20:50:11 -06:00
|
|
|
// for-loops are expanded in the front end, and use an `iter` ident in their expansion. Check that
|
|
|
|
// `iter` is not accessible inside the for loop.
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
for _ in 0..10 {
|
2017-01-11 16:18:08 -06:00
|
|
|
iter.next(); //~ ERROR cannot find value `iter` in this scope
|
2015-01-22 20:50:11 -06:00
|
|
|
}
|
|
|
|
}
|