]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/link-assoc-const.rs
Rollup merge of #106664 - chenyukang:yukang/fix-106597-remove-lseek, r=cuviper
[rust.git] / tests / rustdoc / link-assoc-const.rs
1 #![crate_name = "foo"]
2
3 // @has foo/index.html '//a[@href="foo/constant.FIRSTCONST.html"]' 'foo::FIRSTCONST'
4 // @has foo/index.html '//a[@href="struct.Bar.html#associatedconstant.CONST"]' 'Bar::CONST'
5
6 //! We have here [`foo::FIRSTCONST`] and [`Bar::CONST`].
7
8 pub mod foo {
9     pub const FIRSTCONST: u32 = 42;
10 }
11
12 pub struct Bar;
13
14 impl Bar {
15     pub const CONST: u32 = 42;
16 }