rust/tests/ui/parser/issues/issue-70583-block-is-empty-1.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
378 B
Rust
Raw Normal View History

2020-04-02 02:17:46 -05:00
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);
}
2020-04-03 02:24:02 -05:00
}
2020-04-02 02:17:46 -05:00
} //~ ERROR unexpected closing delimiter: `}`