summaryrefslogtreecommitdiffstats
path: root/src/test/ui/rfc-2008-non-exhaustive/invalid-attribute.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/rfc-2008-non-exhaustive/invalid-attribute.rs')
-rw-r--r--src/test/ui/rfc-2008-non-exhaustive/invalid-attribute.rs16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/test/ui/rfc-2008-non-exhaustive/invalid-attribute.rs b/src/test/ui/rfc-2008-non-exhaustive/invalid-attribute.rs
deleted file mode 100644
index 143f9a300..000000000
--- a/src/test/ui/rfc-2008-non-exhaustive/invalid-attribute.rs
+++ /dev/null
@@ -1,16 +0,0 @@
-#[non_exhaustive(anything)]
-//~^ ERROR malformed `non_exhaustive` attribute
-struct Foo;
-
-#[non_exhaustive]
-//~^ ERROR attribute should be applied to a struct or enum [E0701]
-trait Bar { }
-
-#[non_exhaustive]
-//~^ ERROR attribute should be applied to a struct or enum [E0701]
-union Baz {
- f1: u16,
- f2: u16
-}
-
-fn main() { }