1 pub enum ErrorHandled { 2 Reported, 3 TooGeneric, 4 } 5 6 impl ErrorHandled { assert_reported(self)7 pub fn assert_reported(self) { 8 match self { 9 ErrorHandled::Reported => {}} 10 //^~ ERROR block is empty, you might have not meant to close it 11 ErrorHandled::TooGeneric => panic!(), 12 } 13 } 14 } //~ ERROR unexpected closing delimiter: `}` 15