]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/implementor-stable-version.rs
Rollup merge of #107580 - lenko-d:default_value_for_a_lifetime_generic_parameter_prod...
[rust.git] / tests / rustdoc / implementor-stable-version.rs
1 #![stable(feature = "bar", since = "OLD 1.0")]
2 #![crate_name = "foo"]
3
4 #![feature(staged_api)]
5
6 #[stable(feature = "bar", since = "OLD 1.0")]
7 pub trait Bar {}
8
9 #[stable(feature = "baz", since = "OLD 1.0")]
10 pub trait Baz {}
11
12 #[stable(feature = "baz", since = "OLD 1.0")]
13 pub struct Foo;
14
15 // @has foo/trait.Bar.html '//div[@id="implementors-list"]//span[@class="since"]' 'NEW 2.0'
16 #[stable(feature = "foobar", since = "NEW 2.0")]
17 impl Bar for Foo {}
18
19 // @!has foo/trait.Baz.html '//div[@id="implementors-list"]//span[@class="since"]' 'OLD 1.0'
20 #[stable(feature = "foobaz", since = "OLD 1.0")]
21 impl Baz for Foo {}