rust/tests/ui/impl-trait/in-trait/auxiliary/rpitit.rs
2024-06-25 17:22:22 +02:00

14 lines
226 B
Rust

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 () {
&()
}
}