1 2 3 4 5 6 7 8 9 10
// run-rustfix #[allow(dead_code)] enum Demo { A = 1, B == 2 //~ ERROR unexpected `==` //~^ expected item, found `==` } fn main() {}