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

19 lines
595 B
Rust

pub enum ErrorHandled {
Reported,
TooGeneric,
}
impl ErrorHandled {
pub fn assert_reported(self) {
match self {
//~^ NOTE this delimiter might not be properly closed...
ErrorHandled::Reported => {}}
//~^ NOTE block is empty, you might have not meant to close it
//~| NOTE as it matches this but it has different indentation
ErrorHandled::TooGeneric => panic!(),
}
}
}
//~^ ERROR unexpected closing delimiter: `}`
//~| NOTE unexpected closing delimiter