]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issues/issue-70583-block-is-empty-1.rs
Rollup merge of #92399 - Veeupup:fix_vec_typo, r=Dylan-DPC
[rust.git] / src / test / ui / parser / issues / 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: `}`