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 03:56:36 -06:00
//~^ ERROR does not have a field named `fob`
}
}