2023-10-16 20:11:26 +00:00
|
|
|
#![stable(feature = "bar", since = "3.3.3")]
|
2021-01-23 17:41:04 +00:00
|
|
|
#![crate_name = "foo"]
|
|
|
|
|
|
|
|
#![feature(staged_api)]
|
|
|
|
|
2023-10-16 20:11:26 +00:00
|
|
|
#[stable(feature = "bar", since = "3.3.3")]
|
2021-01-23 17:41:04 +00:00
|
|
|
pub trait Bar {}
|
|
|
|
|
2023-10-16 20:11:26 +00:00
|
|
|
#[stable(feature = "baz", since = "3.3.3")]
|
2021-01-23 17:41:04 +00:00
|
|
|
pub trait Baz {}
|
|
|
|
|
2023-10-16 20:11:26 +00:00
|
|
|
#[stable(feature = "baz", since = "3.3.3")]
|
2021-01-23 17:41:04 +00:00
|
|
|
pub struct Foo;
|
|
|
|
|
2024-06-21 12:03:08 +00:00
|
|
|
//@ has foo/trait.Bar.html '//div[@id="implementors-list"]//span[@class="since"]' '4.4.4'
|
2023-10-16 20:11:26 +00:00
|
|
|
#[stable(feature = "foobar", since = "4.4.4")]
|
2021-01-23 17:41:04 +00:00
|
|
|
impl Bar for Foo {}
|
|
|
|
|
2024-06-21 12:03:08 +00:00
|
|
|
//@ has foo/trait.Baz.html '//div[@id="implementors-list"]//span[@class="since"]' '3.3.3'
|
2023-10-16 20:11:26 +00:00
|
|
|
#[stable(feature = "foobaz", since = "3.3.3")]
|
2021-01-23 17:41:04 +00:00
|
|
|
impl Baz for Foo {}
|