diff options
Diffstat (limited to 'src/test/ui')
| -rw-r--r-- | src/test/ui/issues/issue-49934-errors.rs | 4 | ||||
| -rw-r--r-- | src/test/ui/issues/issue-49934-errors.stderr | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/test/ui/issues/issue-49934-errors.rs b/src/test/ui/issues/issue-49934-errors.rs index 58f64d137b9..6fa5f01ffd9 100644 --- a/src/test/ui/issues/issue-49934-errors.rs +++ b/src/test/ui/issues/issue-49934-errors.rs @@ -1,10 +1,10 @@ fn foo<#[derive(Debug)] T>() { //~^ ERROR `derive` may only be applied to structs, enums and unions -//~| ERROR expected an inert attribute, found an attribute macro +//~| ERROR expected an inert attribute, found a derive macro match 0 { #[derive(Debug)] //~^ ERROR `derive` may only be applied to structs, enums and unions - //~| ERROR expected an inert attribute, found an attribute macro + //~| ERROR expected an inert attribute, found a derive macro _ => (), } } diff --git a/src/test/ui/issues/issue-49934-errors.stderr b/src/test/ui/issues/issue-49934-errors.stderr index fce1f658812..8778d88d0eb 100644 --- a/src/test/ui/issues/issue-49934-errors.stderr +++ b/src/test/ui/issues/issue-49934-errors.stderr @@ -4,7 +4,7 @@ error: `derive` may only be applied to structs, enums and unions LL | fn foo<#[derive(Debug)] T>() { | ^^^^^^^^^^^^^^^^ -error: expected an inert attribute, found an attribute macro +error: expected an inert attribute, found a derive macro --> $DIR/issue-49934-errors.rs:1:17 | LL | fn foo<#[derive(Debug)] T>() { @@ -16,7 +16,7 @@ error: `derive` may only be applied to structs, enums and unions LL | #[derive(Debug)] | ^^^^^^^^^^^^^^^^ -error: expected an inert attribute, found an attribute macro +error: expected an inert attribute, found a derive macro --> $DIR/issue-49934-errors.rs:5:18 | LL | #[derive(Debug)] |
