about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/test')
-rw-r--r--src/test/ui/derives/issue-97343.rs2
-rw-r--r--src/test/ui/derives/issue-97343.stderr13
2 files changed, 3 insertions, 12 deletions
diff --git a/src/test/ui/derives/issue-97343.rs b/src/test/ui/derives/issue-97343.rs
index 6c5626f4796..adec6c7a5c5 100644
--- a/src/test/ui/derives/issue-97343.rs
+++ b/src/test/ui/derives/issue-97343.rs
@@ -1,6 +1,6 @@
 use std::fmt::Debug;
 
-#[derive(Debug)] //~ ERROR expected struct, variant or union type, found type parameter `Irrelevant`
+#[derive(Debug)]
 pub struct Irrelevant<Irrelevant> { //~ ERROR type arguments are not allowed for this type
     irrelevant: Irrelevant,
 }
diff --git a/src/test/ui/derives/issue-97343.stderr b/src/test/ui/derives/issue-97343.stderr
index 418178b01b9..eedd54f1e9f 100644
--- a/src/test/ui/derives/issue-97343.stderr
+++ b/src/test/ui/derives/issue-97343.stderr
@@ -1,11 +1,3 @@
-error[E0574]: expected struct, variant or union type, found type parameter `Irrelevant`
-  --> $DIR/issue-97343.rs:3:10
-   |
-LL | #[derive(Debug)]
-   |          ^^^^^ not a struct, variant or union type
-   |
-   = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)
-
 error[E0109]: type arguments are not allowed for this type
   --> $DIR/issue-97343.rs:4:23
    |
@@ -16,7 +8,6 @@ LL | pub struct Irrelevant<Irrelevant> {
    |
    = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)
 
-error: aborting due to 2 previous errors
+error: aborting due to previous error
 
-Some errors have detailed explanations: E0109, E0574.
-For more information about an error, try `rustc --explain E0109`.
+For more information about this error, try `rustc --explain E0109`.