summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/issue-107350.rs
blob: 75f378ed2498022ec86af45af51007e73adf675c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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::*;
}