rust/src/test/ui/parser/issue-70583-block-is-empty-2.rs

15 lines
393 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 => {}}
//^~ ERROR this block is empty, you might have not mean to close it
ErrorHandled::TooGeneric => panic!(),
}
}
} //~ ERROR unexpected closing delimiter: `}`