Update since
stability attributes in tests
This commit is contained in:
parent
82ed3f5e8b
commit
6a02e20fb5
15 changed files with 79 additions and 69 deletions
|
@ -1,21 +1,21 @@
|
|||
#![stable(feature = "bar", since = "OLD 1.0")]
|
||||
#![stable(feature = "bar", since = "3.3.3")]
|
||||
#![crate_name = "foo"]
|
||||
|
||||
#![feature(staged_api)]
|
||||
|
||||
#[stable(feature = "bar", since = "OLD 1.0")]
|
||||
#[stable(feature = "bar", since = "3.3.3")]
|
||||
pub trait Bar {}
|
||||
|
||||
#[stable(feature = "baz", since = "OLD 1.0")]
|
||||
#[stable(feature = "baz", since = "3.3.3")]
|
||||
pub trait Baz {}
|
||||
|
||||
#[stable(feature = "baz", since = "OLD 1.0")]
|
||||
#[stable(feature = "baz", since = "3.3.3")]
|
||||
pub struct Foo;
|
||||
|
||||
// @has foo/trait.Bar.html '//div[@id="implementors-list"]//span[@class="since"]' 'NEW 2.0'
|
||||
#[stable(feature = "foobar", since = "NEW 2.0")]
|
||||
// @has foo/trait.Bar.html '//div[@id="implementors-list"]//span[@class="since"]' '4.4.4'
|
||||
#[stable(feature = "foobar", since = "4.4.4")]
|
||||
impl Bar for Foo {}
|
||||
|
||||
// @!has foo/trait.Baz.html '//div[@id="implementors-list"]//span[@class="since"]' 'OLD 1.0'
|
||||
#[stable(feature = "foobaz", since = "OLD 1.0")]
|
||||
// @!has foo/trait.Baz.html '//div[@id="implementors-list"]//span[@class="since"]' '3.3.3'
|
||||
#[stable(feature = "foobaz", since = "3.3.3")]
|
||||
impl Baz for Foo {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue