summaryrefslogtreecommitdiffstats
path: root/tests/ui/impl-trait/in-trait/deep-match-works.rs
blob: 78cff97c6165421045d0bbb8c7c2c0dbf140670d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// check-pass

#![feature(return_position_impl_trait_in_trait)]
#![allow(incomplete_features)]

struct Wrapper<T>(T);

trait Foo {
    fn bar() -> Wrapper<impl Sized>;
}

impl Foo for () {
    fn bar() -> Wrapper<i32> {
        Wrapper(0)
    }
}

fn main() {}