rustdoc: Add test for fixed issue
This commit is contained in:
parent
d8bdb3fdcb
commit
b6b0fd9148
4
src/test/rustdoc-ui/issue-61732.rs
Normal file
4
src/test/rustdoc-ui/issue-61732.rs
Normal file
@ -0,0 +1,4 @@
|
||||
// This previously triggered an ICE.
|
||||
|
||||
pub(in crate::r#mod) fn main() {}
|
||||
//~^ ERROR expected module, found unresolved item
|
11
src/test/rustdoc-ui/issue-61732.stderr
Normal file
11
src/test/rustdoc-ui/issue-61732.stderr
Normal file
@ -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`.
|
Loading…
x
Reference in New Issue
Block a user