rust/tests/rustdoc/stability.rs

13 lines
384 B
Rust
Raw Normal View History

2019-01-28 12:04:05 -06:00
#![feature(staged_api)]
#![unstable(feature = "test", issue = "none")]
2019-01-28 12:04:05 -06:00
pub struct Unstable {
// @has stability/struct.Unstable.html \
// '//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,
}