Skip to content

Commit 0df1609

Browse files
authored
Rollup merge of #67008 - ollie27:rustdoc_issue_61732, r=Centril
rustdoc: Add test for fixed issue #61732 was almost certainly fixed by #63400. Closes #61732
2 parents cdbdb68 + b6b0fd9 commit 0df1609

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

src/test/rustdoc-ui/issue-61732.rs

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// This previously triggered an ICE.
2+
3+
pub(in crate::r#mod) fn main() {}
4+
//~^ ERROR expected module, found unresolved item
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
error[E0577]: expected module, found unresolved item `crate::r#mod`
2+
--> $DIR/issue-61732.rs:3:8
3+
|
4+
LL | pub(in crate::r#mod) fn main() {}
5+
| ^^^^^^^^^^^^ not a module
6+
7+
error: Compilation failed, aborting rustdoc
8+
9+
error: aborting due to 2 previous errors
10+
11+
For more information about this error, try `rustc --explain E0577`.

0 commit comments

Comments
 (0)