diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2020-11-19 01:49:20 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2020-11-19 19:25:20 +0300 |
| commit | 68f94e94ed3d80d768d0d107049f02fb99716dbe (patch) | |
| tree | 6762abfbf8b4355855072aeb25e6bdab73f150eb /src/test/ui/attrs-resolution-errors.rs | |
| parent | 69894ce9ac337e51730519e071c94a4bb9c926f2 (diff) | |
| download | rust-68f94e94ed3d80d768d0d107049f02fb99716dbe.tar.gz rust-68f94e94ed3d80d768d0d107049f02fb99716dbe.zip | |
resolve: Centralize some error reporting for unexpected macro resolutions
Diffstat (limited to 'src/test/ui/attrs-resolution-errors.rs')
| -rw-r--r-- | src/test/ui/attrs-resolution-errors.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/test/ui/attrs-resolution-errors.rs b/src/test/ui/attrs-resolution-errors.rs index a38b3cfa666..8770fb1ded8 100644 --- a/src/test/ui/attrs-resolution-errors.rs +++ b/src/test/ui/attrs-resolution-errors.rs @@ -1,12 +1,12 @@ enum FooEnum { #[test] - //~^ ERROR expected an inert attribute, found an attribute macro + //~^ ERROR expected non-macro attribute, found attribute macro Bar(i32), } struct FooStruct { #[test] - //~^ ERROR expected an inert attribute, found an attribute macro + //~^ ERROR expected non-macro attribute, found attribute macro bar: i32, } @@ -21,20 +21,20 @@ fn main() { match foo_struct { FooStruct { #[test] bar - //~^ ERROR expected an inert attribute, found an attribute macro + //~^ ERROR expected non-macro attribute, found attribute macro } => {} } match 1 { 0 => {} #[test] - //~^ ERROR expected an inert attribute, found an attribute macro + //~^ ERROR expected non-macro attribute, found attribute macro _ => {} } let _another_foo_strunct = FooStruct { #[test] - //~^ ERROR expected an inert attribute, found an attribute macro + //~^ ERROR expected non-macro attribute, found attribute macro bar: 1, }; } |
