Update tests
This commit is contained in:
parent
e0df2f87b6
commit
1d02f4fdcc
11 changed files with 38 additions and 28 deletions
src/test/ui
derives
feature-gate
issues
macros
malformed
proc-macro
span
|
@ -1,10 +1,10 @@
|
|||
error: `derive` may only be applied to structs, enums and unions
|
||||
error[E0774]: `derive` may only be applied to structs, enums and unions
|
||||
--> $DIR/derive-on-trait-item-or-impl-item.rs:2:5
|
||||
|
|
||||
LL | #[derive(Clone)]
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
|
||||
error: `derive` may only be applied to structs, enums and unions
|
||||
error[E0774]: `derive` may only be applied to structs, enums and unions
|
||||
--> $DIR/derive-on-trait-item-or-impl-item.rs:10:5
|
||||
|
|
||||
LL | #[derive(Clone)]
|
||||
|
@ -12,3 +12,4 @@ LL | #[derive(Clone)]
|
|||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
For more information about this error, try `rustc --explain E0774`.
|
||||
|
|
|
@ -1,52 +1,52 @@
|
|||
error: `derive` may only be applied to structs, enums and unions
|
||||
error[E0774]: `derive` may only be applied to structs, enums and unions
|
||||
--> $DIR/deriving-non-type.rs:5:1
|
||||
|
|
||||
LL | #[derive(PartialEq)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: `derive` may only be applied to structs, enums and unions
|
||||
error[E0774]: `derive` may only be applied to structs, enums and unions
|
||||
--> $DIR/deriving-non-type.rs:8:1
|
||||
|
|
||||
LL | #[derive(PartialEq)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: `derive` may only be applied to structs, enums and unions
|
||||
error[E0774]: `derive` may only be applied to structs, enums and unions
|
||||
--> $DIR/deriving-non-type.rs:11:1
|
||||
|
|
||||
LL | #[derive(PartialEq)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: `derive` may only be applied to structs, enums and unions
|
||||
error[E0774]: `derive` may only be applied to structs, enums and unions
|
||||
--> $DIR/deriving-non-type.rs:14:1
|
||||
|
|
||||
LL | #[derive(PartialEq)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: `derive` may only be applied to structs, enums and unions
|
||||
error[E0774]: `derive` may only be applied to structs, enums and unions
|
||||
--> $DIR/deriving-non-type.rs:17:1
|
||||
|
|
||||
LL | #[derive(PartialEq)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: `derive` may only be applied to structs, enums and unions
|
||||
error[E0774]: `derive` may only be applied to structs, enums and unions
|
||||
--> $DIR/deriving-non-type.rs:20:1
|
||||
|
|
||||
LL | #[derive(PartialEq)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: `derive` may only be applied to structs, enums and unions
|
||||
error[E0774]: `derive` may only be applied to structs, enums and unions
|
||||
--> $DIR/deriving-non-type.rs:23:1
|
||||
|
|
||||
LL | #[derive(PartialEq)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: `derive` may only be applied to structs, enums and unions
|
||||
error[E0774]: `derive` may only be applied to structs, enums and unions
|
||||
--> $DIR/deriving-non-type.rs:26:1
|
||||
|
|
||||
LL | #[derive(PartialEq)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: `derive` may only be applied to structs, enums and unions
|
||||
error[E0774]: `derive` may only be applied to structs, enums and unions
|
||||
--> $DIR/deriving-non-type.rs:29:1
|
||||
|
|
||||
LL | #[derive(PartialEq)]
|
||||
|
@ -54,3 +54,4 @@ LL | #[derive(PartialEq)]
|
|||
|
||||
error: aborting due to 9 previous errors
|
||||
|
||||
For more information about this error, try `rustc --explain E0774`.
|
||||
|
|
|
@ -1,28 +1,28 @@
|
|||
error: `derive` may only be applied to structs, enums and unions
|
||||
error[E0774]: `derive` may only be applied to structs, enums and unions
|
||||
--> $DIR/issue-43106-gating-of-derive.rs:4:1
|
||||
|
|
||||
LL | #[derive(Debug)]
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
|
||||
error: `derive` may only be applied to structs, enums and unions
|
||||
error[E0774]: `derive` may only be applied to structs, enums and unions
|
||||
--> $DIR/issue-43106-gating-of-derive.rs:7:17
|
||||
|
|
||||
LL | mod inner { #![derive(Debug)] }
|
||||
| ^^^^^^^^^^^^^^^^^ help: try an outer attribute: `#[derive(Debug)]`
|
||||
|
||||
error: `derive` may only be applied to structs, enums and unions
|
||||
error[E0774]: `derive` may only be applied to structs, enums and unions
|
||||
--> $DIR/issue-43106-gating-of-derive.rs:10:5
|
||||
|
|
||||
LL | #[derive(Debug)]
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
|
||||
error: `derive` may only be applied to structs, enums and unions
|
||||
error[E0774]: `derive` may only be applied to structs, enums and unions
|
||||
--> $DIR/issue-43106-gating-of-derive.rs:23:5
|
||||
|
|
||||
LL | #[derive(Debug)]
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
|
||||
error: `derive` may only be applied to structs, enums and unions
|
||||
error[E0774]: `derive` may only be applied to structs, enums and unions
|
||||
--> $DIR/issue-43106-gating-of-derive.rs:27:5
|
||||
|
|
||||
LL | #[derive(Debug)]
|
||||
|
@ -30,3 +30,4 @@ LL | #[derive(Debug)]
|
|||
|
||||
error: aborting due to 5 previous errors
|
||||
|
||||
For more information about this error, try `rustc --explain E0774`.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
error: `derive` may only be applied to structs, enums and unions
|
||||
error[E0774]: `derive` may only be applied to structs, enums and unions
|
||||
--> $DIR/issue-36617.rs:1:1
|
||||
|
|
||||
LL | #![derive(Copy)]
|
||||
|
@ -22,3 +22,4 @@ LL | #![derive(Copy)]
|
|||
|
||||
error: aborting due to 3 previous errors
|
||||
|
||||
For more information about this error, try `rustc --explain E0774`.
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
error: `derive` may only be applied to structs, enums and unions
|
||||
error[E0774]: `derive` may only be applied to structs, enums and unions
|
||||
--> $DIR/issue-43023.rs:4:5
|
||||
|
|
||||
LL | #[derive(Debug)]
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
|
||||
error: `derive` may only be applied to structs, enums and unions
|
||||
error[E0774]: `derive` may only be applied to structs, enums and unions
|
||||
--> $DIR/issue-43023.rs:11:5
|
||||
|
|
||||
LL | #[derive(Debug)]
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
|
||||
error: `derive` may only be applied to structs, enums and unions
|
||||
error[E0774]: `derive` may only be applied to structs, enums and unions
|
||||
--> $DIR/issue-43023.rs:16:5
|
||||
|
|
||||
LL | #[derive(Debug)]
|
||||
|
@ -18,3 +18,4 @@ LL | #[derive(Debug)]
|
|||
|
||||
error: aborting due to 3 previous errors
|
||||
|
||||
For more information about this error, try `rustc --explain E0774`.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
error: `derive` may only be applied to structs, enums and unions
|
||||
error[E0774]: `derive` may only be applied to structs, enums and unions
|
||||
--> $DIR/issue-49934-errors.rs:1:8
|
||||
|
|
||||
LL | fn foo<#[derive(Debug)] T>() {
|
||||
|
@ -10,7 +10,7 @@ error: expected an inert attribute, found a derive macro
|
|||
LL | fn foo<#[derive(Debug)] T>() {
|
||||
| ^^^^^
|
||||
|
||||
error: `derive` may only be applied to structs, enums and unions
|
||||
error[E0774]: `derive` may only be applied to structs, enums and unions
|
||||
--> $DIR/issue-49934-errors.rs:5:9
|
||||
|
|
||||
LL | #[derive(Debug)]
|
||||
|
@ -24,3 +24,4 @@ LL | #[derive(Debug)]
|
|||
|
||||
error: aborting due to 4 previous errors
|
||||
|
||||
For more information about this error, try `rustc --explain E0774`.
|
||||
|
|
|
@ -60,7 +60,7 @@ LL | let a = pat_macro!();
|
|||
|
|
||||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: `derive` may only be applied to structs, enums and unions
|
||||
error[E0774]: `derive` may only be applied to structs, enums and unions
|
||||
--> $DIR/trace_faulty_macros.rs:42:1
|
||||
|
|
||||
LL | #[derive(Debug)]
|
||||
|
@ -79,3 +79,4 @@ LL | let a = pat_macro!();
|
|||
|
||||
error: aborting due to 4 previous errors
|
||||
|
||||
For more information about this error, try `rustc --explain E0774`.
|
||||
|
|
|
@ -4,7 +4,7 @@ error: traits in `#[derive(...)]` don't accept arguments
|
|||
LL | #[derive(parse())]
|
||||
| ^^ help: remove the arguments
|
||||
|
||||
error: `derive` may only be applied to structs, enums and unions
|
||||
error[E0774]: `derive` may only be applied to structs, enums and unions
|
||||
--> $DIR/issue-69341-malformed-derive-inert.rs:8:5
|
||||
|
|
||||
LL | path: (),
|
||||
|
@ -24,3 +24,4 @@ LL | #[derive(parse())]
|
|||
|
||||
error: aborting due to 4 previous errors
|
||||
|
||||
For more information about this error, try `rustc --explain E0774`.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
error: `derive` may only be applied to structs, enums and unions
|
||||
error[E0774]: `derive` may only be applied to structs, enums and unions
|
||||
--> $DIR/attributes-on-modules-fail.rs:16:1
|
||||
|
|
||||
LL | #[derive(Copy)]
|
||||
|
@ -64,5 +64,5 @@ LL | use m::X;
|
|||
|
||||
error: aborting due to 7 previous errors
|
||||
|
||||
Some errors have detailed explanations: E0412, E0658.
|
||||
Some errors have detailed explanations: E0412, E0658, E0774.
|
||||
For more information about an error, try `rustc --explain E0412`.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
error: `derive` may only be applied to structs, enums and unions
|
||||
error[E0774]: `derive` may only be applied to structs, enums and unions
|
||||
--> $DIR/macros-in-extern-derive.rs:2:5
|
||||
|
|
||||
LL | #[derive(Copy)]
|
||||
|
@ -6,3 +6,4 @@ LL | #[derive(Copy)]
|
|||
|
||||
error: aborting due to previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0774`.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
error: `derive` may only be applied to structs, enums and unions
|
||||
error[E0774]: `derive` may only be applied to structs, enums and unions
|
||||
--> $DIR/issue-43927-non-ADT-derive.rs:3:1
|
||||
|
|
||||
LL | #![derive(Debug, PartialEq, Eq)] // should be an outer attribute!
|
||||
|
@ -54,3 +54,4 @@ LL | #![derive(Debug, PartialEq, Eq)] // should be an outer attribute!
|
|||
|
||||
error: aborting due to 7 previous errors
|
||||
|
||||
For more information about this error, try `rustc --explain E0774`.
|
||||
|
|
Loading…
Add table
Reference in a new issue