]>
Commit | Line | Data |
---|---|---|
5869c6ff XL |
1 | #![crate_name = "foo"] |
2 | ||
3 | #![feature(staged_api)] | |
4 | ||
5 | #[stable(feature = "bar", since = "OLD 1.0")] | |
6 | pub trait Bar {} | |
7 | ||
8 | #[stable(feature = "baz", since = "OLD 1.0")] | |
9 | pub trait Baz {} | |
10 | ||
11 | pub struct Foo; | |
12 | ||
13 | // @has foo/trait.Bar.html '//div[@id="implementors-list"]//span[@class="since"]' 'NEW 2.0' | |
14 | #[stable(feature = "foobar", since = "NEW 2.0")] | |
15 | impl Bar for Foo {} | |
16 | ||
17 | // @!has foo/trait.Baz.html '//div[@id="implementors-list"]//span[@class="since"]' 'OLD 1.0' | |
18 | #[stable(feature = "foobaz", since = "OLD 1.0")] | |
19 | impl Baz for Foo {} |