File tree Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change
1
+ #![ deny( rustdoc:: broken_intra_doc_links) ]
2
+ #![ crate_name = "tarte" ]
3
+
4
+ /// [tarte]
5
+ pub struct Tarte ;
Original file line number Diff line number Diff line change
1
+ // Test to ensure that we can link to the current crate by using its name.
2
+ //@ aux-build:intra-link-current-crate.rs
3
+ //@ build-aux-docs
4
+
5
+ #![ deny( rustdoc:: broken_intra_doc_links) ]
6
+ #![ crate_name = "bar" ]
7
+
8
+ //@ has 'bar/index.html'
9
+ //@ has - '//*[@class="docblock"]//a[@href="index.html"]' 'bar'
10
+ //! [`bar`]
11
+
12
+ extern crate tarte;
13
+
14
+ //@ has 'bar/struct.Tarte.html'
15
+ //@ has - '//*[@class="docblock"]//a[@href="../tarte/index.html"]' 'tarte'
16
+ #[ doc( inline) ]
17
+ pub use tarte:: Tarte ;
18
+
19
+ pub mod foo {
20
+ //@ has 'bar/foo/fn.tadam.html'
21
+ //@ has - '//*[@class="docblock"]//a[@href="../index.html"]' 'bar'
22
+ /// [`bar`]
23
+ pub fn tadam ( ) { }
24
+ }
You can’t perform that action at this time.
0 commit comments