rust/tests/ui/issues/issue-19922.rs
2023-01-11 09:32:08 +00:00

8 lines
170 B
Rust

enum Homura {
Akemi { madoka: () }
}
fn main() {
let homura = Homura::Akemi { kaname: () };
//~^ ERROR variant `Homura::Akemi` has no field named `kaname`
}