summaryrefslogtreecommitdiffstats
path: root/tests/ui/impl-trait/in-trait/auxiliary/rpitit.rs
blob: cfc2193f633e0d218f913237b4df142d0b5e94d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![feature(return_position_impl_trait_in_trait)]

use std::ops::Deref;

pub trait Foo {
    fn bar(self) -> impl Deref<Target = impl Sized>;
}

pub struct Foreign;
impl Foo for Foreign {
    fn bar(self) -> &'static () {
        &()
    }
}