rust/tests/rustdoc/pub-use-loop-107350.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
335 B
Rust
Raw Normal View History

2023-01-27 05:10:05 -06:00
// 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'
2023-01-27 05:10:05 -06:00
pub mod oops {
pub use crate::oops::OhNo;
mod inner {
pub enum OhNo {
Item = 1,
}
}
pub use self::inner::*;
}