2019-01-28 18:04:05 +00:00
|
|
|
#![feature(staged_api)]
|
|
|
|
|
2019-12-21 11:16:18 +00:00
|
|
|
#![unstable(feature = "test", issue = "none")]
|
2019-01-28 18:04:05 +00:00
|
|
|
|
2023-11-24 01:16:19 +00:00
|
|
|
// @has stability/index.html
|
2023-11-24 00:38:31 +00: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-24 01:16:19 +00:00
|
|
|
|
|
|
|
#[stable(feature = "rust2", since = "2.2.2")]
|
|
|
|
pub struct AaStable;
|
|
|
|
|
2019-01-28 18:04:05 +00:00
|
|
|
pub struct Unstable {
|
|
|
|
// @has stability/struct.Unstable.html \
|
2022-04-06 18:41:57 +00:00
|
|
|
// '//span[@class="item-info"]//div[@class="stab unstable"]' \
|
2019-01-28 18:04:05 +00: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-24 01:16:19 +00:00
|
|
|
|
|
|
|
#[stable(feature = "rust2", since = "2.2.2")]
|
|
|
|
pub struct ZzStable;
|