diff --git a/src/test/ui/stability-attribute/stability-attribute-sanity-4.rs b/src/test/ui/stability-attribute/stability-attribute-sanity-4.rs index c64899c1e92..b85f9342045 100644 --- a/src/test/ui/stability-attribute/stability-attribute-sanity-4.rs +++ b/src/test/ui/stability-attribute/stability-attribute-sanity-4.rs @@ -19,10 +19,12 @@ mod bogus_attribute_types_2 { #[stable(feature = "a", since = "b")] #[rustc_deprecated] //~ ERROR malformed `rustc_deprecated` attribute + //~^ ERROR missing 'since' fn f5() { } #[stable(feature = "a", since = "b")] #[rustc_deprecated = "a"] //~ ERROR malformed `rustc_deprecated` attribute + //~^ ERROR missing 'since' fn f6() { } } diff --git a/src/test/ui/stability-attribute/stability-attribute-sanity-4.stderr b/src/test/ui/stability-attribute/stability-attribute-sanity-4.stderr index 9d23b344ed1..651f293ff51 100644 --- a/src/test/ui/stability-attribute/stability-attribute-sanity-4.stderr +++ b/src/test/ui/stability-attribute/stability-attribute-sanity-4.stderr @@ -29,10 +29,23 @@ LL | #[rustc_deprecated] | ^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[rustc_deprecated(since = "version", reason = "...")]` error: malformed `rustc_deprecated` attribute input - --> $DIR/stability-attribute-sanity-4.rs:25:5 + --> $DIR/stability-attribute-sanity-4.rs:26:5 | LL | #[rustc_deprecated = "a"] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[rustc_deprecated(since = "version", reason = "...")]` -error: aborting due to 6 previous errors +error[E0542]: missing 'since' + --> $DIR/stability-attribute-sanity-4.rs:21:5 + | +LL | #[rustc_deprecated] + | ^^^^^^^^^^^^^^^^^^^ +error[E0542]: missing 'since' + --> $DIR/stability-attribute-sanity-4.rs:26:5 + | +LL | #[rustc_deprecated = "a"] + | ^^^^^^^^^^^^^^^^^^^^^^^^^ + +error: aborting due to 8 previous errors + +For more information about this error, try `rustc --explain E0542`.