Bless test.
This commit is contained in:
parent
71838827b6
commit
969f8735dc
@ -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() { }
|
||||
}
|
||||
|
||||
|
@ -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`.
|
||||
|
Loading…
x
Reference in New Issue
Block a user