blob: 80f53338a689e92f831d208220ed74b51ba6b0d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
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: `}`
|