summaryrefslogtreecommitdiffstats
path: root/tests/ui/impl-trait/in-trait/nested-rpitit-bounds.rs
blob: b97fd7d1ffe9026a3da9c6363b7eab1dc0662e1c (plain)
1
2
3
4
5
6
7
8
9
10
11
// check-pass

use std::ops::Deref;

trait Foo {
    fn foo() -> impl Deref<Target = impl Deref<Target = impl Sized>> {
        &&()
    }
}

fn main() {}