summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-52717.rs
blob: f83232a4a268994dc5232f3710a1e0d38de5903c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
enum A {
  A {
    foo: usize,
  }
}

fn main() {
  let x = A::A { foo: 3 };
  match x {
    A::A { fob } => { println!("{}", fob); }
//~^ ERROR does not have a field named `fob`
  }
}