rust/tests/rustdoc/implementor-stable-version.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
594 B
Rust
Raw Permalink Normal View History

#![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 {}