rust/tests/ui/mismatched_types/for-loop-has-unit-body.rs

6 lines
77 B
Rust

fn main() {
for x in 0..3 {
x //~ ERROR mismatched types
}
}