summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-52717.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/issues/issue-52717.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-52717.rs b/src/test/ui/issues/issue-52717.rs
new file mode 100644
index 000000000..f83232a4a
--- /dev/null
+++ b/src/test/ui/issues/issue-52717.rs
@@ -0,0 +1,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`
+ }
+}