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