mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-30 14:52:56 +03:00
11 lines
244 B
Rust
11 lines
244 B
Rust
//! regression test for <https://github.com/rust-lang/rust/issues/19922>
|
|
|
|
enum Homura {
|
|
Akemi { madoka: () }
|
|
}
|
|
|
|
fn main() {
|
|
let homura = Homura::Akemi { kaname: () };
|
|
//~^ ERROR variant `Homura::Akemi` has no field named `kaname`
|
|
}
|