rust/tests/ui/issues/issue-19922.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
170 B
Rust
Raw Normal View History

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