Skip to content

Commit ac27ac0

Browse files
committed
Bless test.
1 parent cbc1202 commit ac27ac0

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

src/test/ui/stability-attribute/stability-attribute-sanity-4.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

src/test/ui/stability-attribute/stability-attribute-sanity-4.stderr

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,23 @@ LL | #[rustc_deprecated]
2929
| ^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[rustc_deprecated(since = "version", reason = "...")]`
3030

3131
error: malformed `rustc_deprecated` attribute input
32-
--> $DIR/stability-attribute-sanity-4.rs:25:5
32+
--> $DIR/stability-attribute-sanity-4.rs:26:5
3333
|
3434
LL | #[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`.

0 commit comments

Comments
 (0)