]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/intra-doc/type-alias.rs
Auto merge of #82624 - ojeda:rwlock-example-deadlock, r=JohnTitor
[rust.git] / src / test / rustdoc / intra-doc / type-alias.rs
1 // Regression test for issue #86120.
2
3 #![deny(broken_intra_doc_links)]
4 #![crate_name = "foo"]
5
6 pub struct Foo;
7
8 /// You should really try [`Self::bar`]!
9 pub type Bar = Foo;
10
11 impl Bar {
12     pub fn bar() {}
13 }
14
15 /// The minimum is [`Self::MIN`].
16 pub type Int = i32;
17
18 // @has foo/type.Bar.html '//a[@href="struct.Foo.html#method.bar"]' 'Self::bar'
19 // @has foo/type.Int.html '//a[@href="{{channel}}/std/primitive.i32.html#associatedconstant.MIN"]' 'Self::MIN'