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
This commit is contained in:
Yuki Okushi 2019-12-07 00:09:59 +09:00 committed by GitHub
commit 0df1609215
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 0 deletions

View file

@ -0,0 +1,4 @@
// This previously triggered an ICE.
pub(in crate::r#mod) fn main() {}
//~^ ERROR expected module, found unresolved item

View 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`.