rust/tests/ui/parser/issues/issue-70583-block-is-empty-2.rs
2023-01-11 09:32:08 +00:00

15 lines
388 B
Rust

pub enum ErrorHandled {
Reported,
TooGeneric,
}
impl ErrorHandled {
pub fn assert_reported(self) {
match self {
ErrorHandled::Reported => {}}
//^~ ERROR block is empty, you might have not meant to close it
ErrorHandled::TooGeneric => panic!(),
}
}
} //~ ERROR unexpected closing delimiter: `}`