diff --git a/src/test/rustdoc-ui/issue-61732.rs b/src/test/rustdoc-ui/issue-61732.rs new file mode 100644 index 0000000000000000000000000000000000000000..d4835c092248e3906987f0540890a85a1f510586 --- /dev/null +++ b/src/test/rustdoc-ui/issue-61732.rs @@ -0,0 +1,4 @@ +// This previously triggered an ICE. + +pub(in crate::r#mod) fn main() {} +//~^ ERROR expected module, found unresolved item diff --git a/src/test/rustdoc-ui/issue-61732.stderr b/src/test/rustdoc-ui/issue-61732.stderr new file mode 100644 index 0000000000000000000000000000000000000000..6c8ba48864df0a7e70377187619d8987c2443e13 --- /dev/null +++ b/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() {} + | ^^^^^^^^^^^^ not a module + +error: Compilation failed, aborting rustdoc + +error: aborting due to 2 previous errors + +For more information about this error, try `rustc --explain E0577`.