]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/inline_cross/assoc-items.rs
Rollup merge of #106823 - m-ou-se:format-args-as-str-guarantees, r=dtolnay
[rust.git] / tests / rustdoc / inline_cross / assoc-items.rs
1 // aux-build:assoc-items.rs
2 // build-aux-docs
3 // ignore-cross-compile
4
5 #![crate_name = "foo"]
6
7 extern crate assoc_items;
8
9 // @has foo/struct.MyStruct.html
10 // @!hasraw - 'PrivateConst'
11 // @has - '//*[@id="associatedconstant.PublicConst"]' 'pub const PublicConst: u8'
12 // @has - '//*[@class="docblock"]' 'docs for PublicConst'
13 // @!hasraw - 'private_method'
14 // @has - '//*[@id="method.public_method"]' 'pub fn public_method()'
15 // @has - '//*[@class="docblock"]' 'docs for public_method'
16 // @has - '//*[@id="associatedconstant.ConstNoDefault"]' 'const ConstNoDefault: i16'
17 // @has - '//*[@class="docblock"]' 'dox for ConstNoDefault'
18 // @has - '//*[@id="associatedconstant.ConstWithDefault"]' 'const ConstWithDefault: u16'
19 // @has - '//div[@class="docblock"]' 'docs for ConstWithDefault'
20 // @has - '//*[@id="associatedtype.TypeNoDefault"]' 'type TypeNoDefault = i32'
21 // @has - '//*[@class="docblock"]' 'dox for TypeNoDefault'
22 // @has - '//*[@id="associatedtype.TypeWithDefault"]' 'type TypeWithDefault = u32'
23 // @has - '//div[@class="docblock"]' 'docs for TypeWithDefault'
24 // @has - '//*[@id="method.method_no_default"]' 'fn method_no_default()'
25 // @has - '//*[@class="docblock"]' 'dox for method_no_default'
26 // @has - '//*[@id="method.method_with_default"]' 'fn method_with_default()'
27 // @has - '//div[@class="docblock"]' 'docs for method_with_default'
28 pub use assoc_items::MyStruct;
29
30 // @has foo/trait.MyTrait.html
31 // @has - '//*[@id="associatedconstant.ConstNoDefault"]' 'const ConstNoDefault: i16'
32 // @has - '//*[@class="docblock"]' 'docs for ConstNoDefault'
33 // @has - '//*[@id="associatedconstant.ConstWithDefault"]' 'const ConstWithDefault: u16'
34 // @has - '//*[@class="docblock"]' 'docs for ConstWithDefault'
35 // @has - '//*[@id="associatedtype.TypeNoDefault"]' 'type TypeNoDefault'
36 // @has - '//*[@class="docblock"]' 'docs for TypeNoDefault'
37 // @has - '//*[@class="docblock"]' 'docs for TypeWithDefault'
38 // @has - '//*[@id="tymethod.method_no_default"]' 'fn method_no_default()'
39 // @has - '//*[@class="docblock"]' 'docs for method_no_default'
40 // @has - '//*[@id="method.method_with_default"]' 'fn method_with_default()'
41 // @has - '//*[@class="docblock"]' 'docs for method_with_default'
42 pub use assoc_items::MyTrait;