summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-ui/infinite-recursive-type-impl-trait-return.rs
blob: 4b1e04234c870594bcaaf458bb9b2fbe39507c8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// check-pass
// normalize-stderr-test: "`.*`" -> "`DEF_ID`"
// normalize-stdout-test: "`.*`" -> "`DEF_ID`"
// edition:2018

pub async fn f() -> impl std::fmt::Debug {
    // rustdoc doesn't care that this is infinitely sized
    #[derive(Debug)]
    enum E {
        This(E),
        Unit,
    }
    E::Unit
}

fn main() {}