]> git.proxmox.com Git - rustc.git/blob - src/test/ui/parser/issue-70583-block-is-empty-1.rs
New upstream version 1.57.0+dfsg1
[rustc.git] / src / test / ui / parser / issue-70583-block-is-empty-1.rs
1 pub enum ErrorHandled {
2 Reported,
3 TooGeneric,
4 }
5
6 impl ErrorHandled {
7 pub fn assert_reported(self) {
8 match self {
9 ErrorHandled::Reported => {}
10 ErrorHandled::TooGeneric => panic!(),
11 }
12 }
13 }
14
15 fn struct_generic(x: Vec<i32>) {
16 for v in x {
17 println!("{}", v);
18 }
19 }
20 } //~ ERROR unexpected closing delimiter: `}`