File tree 2 files changed +23
-2
lines changed
src/test/rustdoc/intra-doc
2 files changed +23
-2
lines changed Original file line number Diff line number Diff line change @@ -4,14 +4,34 @@ extern {
4
4
pub type ExternType ;
5
5
}
6
6
7
+ pub trait T {
8
+ fn test ( & self ) { }
9
+ }
10
+
11
+ pub trait G < N > {
12
+ fn g ( & self , n : N ) { }
13
+ }
14
+
7
15
impl ExternType {
8
- pub fn f ( & self ) {
16
+ pub fn f ( & self ) { }
17
+ }
9
18
10
- }
19
+ impl T for ExternType {
20
+ fn test ( & self ) { }
21
+ }
22
+
23
+ impl G < usize > for ExternType {
24
+ fn g ( & self , n : usize ) { }
11
25
}
12
26
13
27
// @has 'extern_type/foreigntype.ExternType.html'
14
28
// @has 'extern_type/fn.links_to_extern_type.html' \
15
29
// 'href="foreigntype.ExternType.html#method.f"'
30
+ // @has 'extern_type/fn.links_to_extern_type.html' \
31
+ // 'href="foreigntype.ExternType.html#method.test"'
32
+ // @has 'extern_type/fn.links_to_extern_type.html' \
33
+ // 'href="foreigntype.ExternType.html#method.g"'
16
34
/// See also [ExternType::f]
35
+ /// See also [ExternType::test]
36
+ /// See also [ExternType::g]
17
37
pub fn links_to_extern_type ( ) { }
Original file line number Diff line number Diff line change 1
1
#![ deny( rustdoc:: broken_intra_doc_links) ]
2
2
3
3
// Test intra-doc links on trait implementations with generics
4
+ // regression test for issue #92662
4
5
5
6
use std:: marker:: PhantomData ;
6
7
You can’t perform that action at this time.
0 commit comments