Add regression test for #107350
This commit is contained in:
parent
b8c44fa414
commit
1b64e16643
1 changed files with 18 additions and 0 deletions
18
tests/rustdoc/issue-107350.rs
Normal file
18
tests/rustdoc/issue-107350.rs
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
// This is a regression test for <https://github.com/rust-lang/rust/issues/107350>.
|
||||||
|
// It shouldn't loop indefinitely.
|
||||||
|
|
||||||
|
#![crate_name = "foo"]
|
||||||
|
|
||||||
|
// @has 'foo/oops/enum.OhNo.html'
|
||||||
|
|
||||||
|
pub mod oops {
|
||||||
|
pub use crate::oops::OhNo;
|
||||||
|
|
||||||
|
mod inner {
|
||||||
|
pub enum OhNo {
|
||||||
|
Item = 1,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
pub use self::inner::*;
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue