about summary refs log tree commit diff
path: root/tests/ui/impl-trait/issues/issue-103599.rs
blob: e674ce3cbdf8f3f1d1749cf49f4013ec956f3f8b (plain)
1
2
3
4
5
6
7
8
9
trait T {}

fn wrap(x: impl T) -> impl T {
    //~^ ERROR cannot resolve opaque type
    //~| WARN function cannot return without recursing
    wrap(wrap(x))
}

fn main() {}