]> git.proxmox.com Git - rustc.git/blame - src/test/rustdoc/implementor-stable-version.rs
New upstream version 1.51.0+dfsg1
[rustc.git] / src / test / rustdoc / implementor-stable-version.rs
CommitLineData
5869c6ff
XL
1#![crate_name = "foo"]
2
3#![feature(staged_api)]
4
5#[stable(feature = "bar", since = "OLD 1.0")]
6pub trait Bar {}
7
8#[stable(feature = "baz", since = "OLD 1.0")]
9pub trait Baz {}
10
11pub struct Foo;
12
13// @has foo/trait.Bar.html '//div[@id="implementors-list"]//span[@class="since"]' 'NEW 2.0'
14#[stable(feature = "foobar", since = "NEW 2.0")]
15impl Bar for Foo {}
16
17// @!has foo/trait.Baz.html '//div[@id="implementors-list"]//span[@class="since"]' 'OLD 1.0'
18#[stable(feature = "foobaz", since = "OLD 1.0")]
19impl Baz for Foo {}