Skip to content

Commit 01df8fe

Browse files
committed
Add a rustdoc test for future rustc_deprecated attributes
1 parent 3dc660f commit 01df8fe

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#![feature(staged_api)]
2+
3+
#![stable(feature = "rustc_deprecated-future-test", since = "1.0.0")]
4+
5+
// @has rustc_deprecated_future/index.html '//*[@class="stab deprecated"]' \
6+
// 'Deprecation planned'
7+
// @has rustc_deprecated_future/struct.S.html '//*[@class="stab deprecated"]' \
8+
// 'Deprecating in 99.99.99: effectively never'
9+
#[rustc_deprecated(since = "99.99.99", reason = "effectively never")]
10+
#[stable(feature = "rustc_deprecated-future-test", since = "1.0.0")]
11+
pub struct S;

0 commit comments

Comments
 (0)