rust/tests/ui/for/for-expn.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
235 B
Rust
Raw Normal View History

2015-05-12 00:42:45 +00:00
// Test that an error on a sub-expresson in a for loop has the correct span.
fn main() {
// Odd formatting to make sure we get the right span.
for t in &
foo //~ ERROR cannot find value `foo` in this scope
2015-05-12 00:42:45 +00:00
{
}
}