summaryrefslogtreecommitdiffstats
path: root/src/test/ui/for/for-loop-type-error.rs
blob: 8d9fc20f0d0d6ef0dd5189e4fd45d8895c49b2f3 (plain)
1
2
3
4
5
6
pub fn main() {
    let x = () + (); //~ ERROR cannot add `()` to `()`

    // this shouldn't have a flow-on error:
    for _ in x {}
}