summaryrefslogtreecommitdiffstats
path: root/src/test/ui/derives/issue-43023.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/derives/issue-43023.rs')
-rw-r--r--src/test/ui/derives/issue-43023.rs20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/test/ui/derives/issue-43023.rs b/src/test/ui/derives/issue-43023.rs
deleted file mode 100644
index c0208e680..000000000
--- a/src/test/ui/derives/issue-43023.rs
+++ /dev/null
@@ -1,20 +0,0 @@
-struct S;
-
-impl S {
- #[derive(Debug)] //~ ERROR `derive` may only be applied to `struct`s, `enum`s and `union`s
- fn f() {
- file!();
- }
-}
-
-trait Tr1 {
- #[derive(Debug)] //~ ERROR `derive` may only be applied to `struct`s, `enum`s and `union`s
- fn f();
-}
-
-trait Tr2 {
- #[derive(Debug)] //~ ERROR `derive` may only be applied to `struct`s, `enum`s and `union`s
- type F;
-}
-
-fn main() {}