We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cdbdb68 + b6b0fd9 commit 0df1609Copy full SHA for 0df1609
src/test/rustdoc-ui/issue-61732.rs
@@ -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
src/test/rustdoc-ui/issue-61732.stderr
@@ -0,0 +1,11 @@
+error[E0577]: expected module, found unresolved item `crate::r#mod`
+ --> $DIR/issue-61732.rs:3:8
+ |
+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