]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/assoc-consts-version.rs
Rollup merge of #107384 - Nilstrieb:bool-for-deletion, r=oli-obk
[rust.git] / tests / rustdoc / assoc-consts-version.rs
1 #![crate_name = "foo"]
2
3 #![feature(staged_api)]
4
5 #![stable(since="1.1.1", feature="rust1")]
6
7 #[stable(since="1.1.1", feature="rust1")]
8 pub struct SomeStruct;
9
10 impl SomeStruct {
11     // @has 'foo/struct.SomeStruct.html' \
12     //   '//*[@id="associatedconstant.SOME_CONST"]//span[@class="since"]' '1.1.2'
13     #[stable(since="1.1.2", feature="rust2")]
14     pub const SOME_CONST: usize = 0;
15 }