blob: a213994ff86cd921cf356a055dd9f1dbdeaf38df [file] [log] [blame]
#![feature(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 () {
&()
}
}