Skip to content

Commit 5ab4d46

Browse files
Update rustdoc test to make it work with newly added rustc passes
1 parent 25e030b commit 5ab4d46

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/rustdoc/implementor-stable-version.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![stable(feature = "bar", since = "OLD 1.0")]
12
#![crate_name = "foo"]
23

34
#![feature(staged_api)]
@@ -8,6 +9,7 @@ pub trait Bar {}
89
#[stable(feature = "baz", since = "OLD 1.0")]
910
pub trait Baz {}
1011

12+
#[stable(feature = "baz", since = "OLD 1.0")]
1113
pub struct Foo;
1214

1315
// @has foo/trait.Bar.html '//div[@id="implementors-list"]//span[@class="since"]' 'NEW 2.0'

0 commit comments

Comments
 (0)