1 error[E0308]: mismatched types
2 --> $DIR/for-loop-has-unit-body.rs:3:9
4 LL | x //~ ERROR mismatched types
5 | ^ expected (), found integer
7 = note: expected type `()`
10 error: aborting due to previous error
12 For more information about this error, try `rustc --explain E0308`.