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

pub async fn f() -> impl std::fmt::Debug {
    #[derive(Debug)]
    enum E { //~ ERROR
        This(E),
        Unit,
    }
    E::Unit
}

fn main() {}