about summary refs log tree commit diff
path: root/src/test/ui/privacy/private-struct-field-pattern.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/privacy/private-struct-field-pattern.rs')
-rw-r--r--src/test/ui/privacy/private-struct-field-pattern.rs17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/test/ui/privacy/private-struct-field-pattern.rs b/src/test/ui/privacy/private-struct-field-pattern.rs
deleted file mode 100644
index 4a766500e1b..00000000000
--- a/src/test/ui/privacy/private-struct-field-pattern.rs
+++ /dev/null
@@ -1,17 +0,0 @@
-use a::Foo;
-
-mod a {
-    pub struct Foo {
-        x: isize
-    }
-
-    pub fn make() -> Foo {
-        Foo { x: 3 }
-    }
-}
-
-fn main() {
-    match a::make() {
-        Foo { x: _ } => {}  //~ ERROR field `x` of struct `Foo` is private
-    }
-}