summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/issues/issue-70583-block-is-empty-1.rs
blob: f560f68f613685ddc7ef92a5e77ae96aeddc4595 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
pub enum ErrorHandled {
    Reported,
    TooGeneric,
}

impl ErrorHandled {
    pub fn assert_reported(self) {
        match self {
            ErrorHandled::Reported => {}
            ErrorHandled::TooGeneric => panic!(),
        }
    }
}

fn struct_generic(x: Vec<i32>) {
    for v in x {
        println!("{}", v);
    }
    }
} //~ ERROR unexpected closing delimiter: `}`