2019-01-28 12:04:05 -06:00
|
|
|
#![feature(staged_api)]
|
|
|
|
|
2019-12-21 05:16:18 -06:00
|
|
|
#![unstable(feature = "test", issue = "none")]
|
2019-01-28 12:04:05 -06:00
|
|
|
|
2023-11-23 19:16:19 -06:00
|
|
|
// @has stability/index.html
|
2023-11-23 18:38:31 -06:00
|
|
|
// @has - '//ul[@class="item-table"]/li[1]//a' AaStable
|
|
|
|
// @has - '//ul[@class="item-table"]/li[2]//a' ZzStable
|
|
|
|
// @has - '//ul[@class="item-table"]/li[3]//a' Unstable
|
2023-11-23 19:16:19 -06:00
|
|
|
|
|
|
|
#[stable(feature = "rust2", since = "2.2.2")]
|
|
|
|
pub struct AaStable;
|
|
|
|
|
2019-01-28 12:04:05 -06:00
|
|
|
pub struct Unstable {
|
|
|
|
// @has stability/struct.Unstable.html \
|
2022-04-06 13:41:57 -05:00
|
|
|
// '//span[@class="item-info"]//div[@class="stab unstable"]' \
|
2019-01-28 12:04:05 -06:00
|
|
|
// 'This is a nightly-only experimental API'
|
|
|
|
// @count stability/struct.Unstable.html '//span[@class="stab unstable"]' 0
|
|
|
|
pub foo: u32,
|
|
|
|
pub bar: u32,
|
|
|
|
}
|
2023-11-23 19:16:19 -06:00
|
|
|
|
|
|
|
#[stable(feature = "rust2", since = "2.2.2")]
|
|
|
|
pub struct ZzStable;
|