diff options
| -rw-r--r-- | src/test/ui/feature-gates/feature-gate-rustc-attrs-1.rs | 2 | ||||
| -rw-r--r-- | src/test/ui/feature-gates/feature-gate-rustc-attrs-1.stderr | 11 |
2 files changed, 3 insertions, 10 deletions
diff --git a/src/test/ui/feature-gates/feature-gate-rustc-attrs-1.rs b/src/test/ui/feature-gates/feature-gate-rustc-attrs-1.rs index 2b23388fdc9..f7ff3eb3ac9 100644 --- a/src/test/ui/feature-gates/feature-gate-rustc-attrs-1.rs +++ b/src/test/ui/feature-gates/feature-gate-rustc-attrs-1.rs @@ -5,4 +5,4 @@ #[rustc_variance] //~ ERROR the `#[rustc_variance]` attribute is just used for rustc unit tests and will never be stable #[rustc_error] //~ ERROR the `#[rustc_error]` attribute is just used for rustc unit tests and will never be stable -fn main() {} //~ ERROR [] +fn main() {} diff --git a/src/test/ui/feature-gates/feature-gate-rustc-attrs-1.stderr b/src/test/ui/feature-gates/feature-gate-rustc-attrs-1.stderr index 31e24f5b99f..2b90699384b 100644 --- a/src/test/ui/feature-gates/feature-gate-rustc-attrs-1.stderr +++ b/src/test/ui/feature-gates/feature-gate-rustc-attrs-1.stderr @@ -14,13 +14,6 @@ LL | #[rustc_error] //~ ERROR the `#[rustc_error]` attribute is just used for ru | = help: add #![feature(rustc_attrs)] to the crate attributes to enable -error[E0208]: [] - --> $DIR/feature-gate-rustc-attrs-1.rs:8:1 - | -LL | fn main() {} //~ ERROR [] - | ^^^^^^^^^^^^ - -error: aborting due to 3 previous errors +error: aborting due to 2 previous errors -Some errors occurred: E0208, E0658. -For more information about an error, try `rustc --explain E0208`. +For more information about this error, try `rustc --explain E0658`. |
