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

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

14 lines
185 B
Rust
Raw Normal View History

enum A {
A {
foo: usize,
}
}
fn main() {
let x = A::A { foo: 3 };
match x {
A::A { fob } => { println!("{}", fob); }
2018-11-27 09:56:36 +00:00
//~^ ERROR does not have a field named `fob`
}
}