mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
22 lines
594 B
Rust
22 lines
594 B
Rust
#![stable(feature = "bar", since = "3.3.3")]
|
|
#![crate_name = "foo"]
|
|
|
|
#![feature(staged_api)]
|
|
|
|
#[stable(feature = "bar", since = "3.3.3")]
|
|
pub trait Bar {}
|
|
|
|
#[stable(feature = "baz", since = "3.3.3")]
|
|
pub trait Baz {}
|
|
|
|
#[stable(feature = "baz", since = "3.3.3")]
|
|
pub struct Foo;
|
|
|
|
//@ 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"]' '3.3.3'
|
|
#[stable(feature = "foobaz", since = "3.3.3")]
|
|
impl Baz for Foo {}
|