2019-01-29 02:04:05 +08:00
|
|
|
#![feature(staged_api)]
|
|
|
|
|
2019-12-21 19:16:18 +08:00
|
|
|
#![unstable(feature = "test", issue = "none")]
|
2019-01-29 02:04:05 +08:00
|
|
|
|
2024-06-21 20:03:08 +08:00
|
|
|
//@ has stability/index.html
|
|
|
|
//@ 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 09:16:19 +08:00
|
|
|
|
|
|
|
#[stable(feature = "rust2", since = "2.2.2")]
|
|
|
|
pub struct AaStable;
|
|
|
|
|
2019-01-29 02:04:05 +08:00
|
|
|
pub struct Unstable {
|
2024-06-21 20:03:08 +08:00
|
|
|
//@ has stability/struct.Unstable.html \
|
2022-04-07 02:41:57 +08:00
|
|
|
// '//span[@class="item-info"]//div[@class="stab unstable"]' \
|
2019-01-29 02:04:05 +08:00
|
|
|
// 'This is a nightly-only experimental API'
|
2024-06-21 20:03:08 +08:00
|
|
|
//@ count stability/struct.Unstable.html '//span[@class="stab unstable"]' 0
|
2019-01-29 02:04:05 +08:00
|
|
|
pub foo: u32,
|
|
|
|
pub bar: u32,
|
|
|
|
}
|
2023-11-24 09:16:19 +08:00
|
|
|
|
|
|
|
#[stable(feature = "rust2", since = "2.2.2")]
|
|
|
|
pub struct ZzStable;
|