Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 7c0d576

Browse files
Add test for reexported items lints
1 parent 130fd1a commit 7c0d576

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#![deny(broken_intra_doc_links)]
2+
3+
/// [somewhere]
4+
//~^ ERROR unresolved link to `somewhere`
5+
pub use std::str::*;
6+
/// [aloha]
7+
//~^ ERROR unresolved link to `aloha`
8+
pub use std::task::RawWakerVTable;
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
error: unresolved link to `somewhere`
2+
--> $DIR/pub-export-lint.rs:3:6
3+
|
4+
LL | /// [somewhere]
5+
| ^^^^^^^^^ the module `pub_export_lint` contains no item named `somewhere`
6+
|
7+
note: the lint level is defined here
8+
--> $DIR/pub-export-lint.rs:1:9
9+
|
10+
LL | #![deny(broken_intra_doc_links)]
11+
| ^^^^^^^^^^^^^^^^^^^^^^
12+
= help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
13+
14+
error: unresolved link to `aloha`
15+
--> $DIR/pub-export-lint.rs:6:6
16+
|
17+
LL | /// [aloha]
18+
| ^^^^^ the module `pub_export_lint` contains no item named `aloha`
19+
|
20+
= help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
21+
22+
error: aborting due to 2 previous errors
23+

0 commit comments

Comments
 (0)