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

use std::ops::Deref;

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

pub struct Foreign;
impl Foo for Foreign {
    #[expect(refining_impl_trait)]
    fn bar(self) -> &'static () {
        &()
    }
}