Sign in
fuchsia
/
third_party
/
rust
/
08351004125c4d49aa757f2c3ec2340f7469ea91
/
.
/
src
/
test
/
ui
/
hygiene
/
for-loop.rs
blob: 2e5ae43a9ce47711bb546b00ea6be20df825f7fb [
file
] [
log
] [
blame
]
// 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
{
iter
.
next
();
//~ ERROR cannot find value `iter` in this scope
}
}