File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed
src/test/ui/stability-attribute Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -19,10 +19,12 @@ mod bogus_attribute_types_2 {
1919
2020 #[ stable( feature = "a" , since = "b" ) ]
2121 #[ rustc_deprecated] //~ ERROR malformed `rustc_deprecated` attribute
22+ //~^ ERROR missing 'since'
2223 fn f5 ( ) { }
2324
2425 #[ stable( feature = "a" , since = "b" ) ]
2526 #[ rustc_deprecated = "a" ] //~ ERROR malformed `rustc_deprecated` attribute
27+ //~^ ERROR missing 'since'
2628 fn f6 ( ) { }
2729}
2830
Original file line number Diff line number Diff line change @@ -29,10 +29,23 @@ LL | #[rustc_deprecated]
2929 | ^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[rustc_deprecated(since = "version", reason = "...")]`
3030
3131error: malformed `rustc_deprecated` attribute input
32- --> $DIR/stability-attribute-sanity-4.rs:25 :5
32+ --> $DIR/stability-attribute-sanity-4.rs:26 :5
3333 |
3434LL | #[rustc_deprecated = "a"]
3535 | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[rustc_deprecated(since = "version", reason = "...")]`
3636
37- error: aborting due to 6 previous errors
37+ error[E0542]: missing 'since'
38+ --> $DIR/stability-attribute-sanity-4.rs:21:5
39+ |
40+ LL | #[rustc_deprecated]
41+ | ^^^^^^^^^^^^^^^^^^^
42+
43+ error[E0542]: missing 'since'
44+ --> $DIR/stability-attribute-sanity-4.rs:26:5
45+ |
46+ LL | #[rustc_deprecated = "a"]
47+ | ^^^^^^^^^^^^^^^^^^^^^^^^^
48+
49+ error: aborting due to 8 previous errors
3850
51+ For more information about this error, try `rustc --explain E0542`.
You can’t perform that action at this time.
0 commit comments