2023-09-13 11:04:42 -05:00
|
|
|
#![feature(lint_reasons)]
|
2022-09-22 19:56:55 -05:00
|
|
|
|
2023-03-21 13:06:04 -05:00
|
|
|
use std::ops::Deref;
|
|
|
|
|
2022-09-22 19:56:55 -05:00
|
|
|
pub trait Foo {
|
2023-04-30 16:52:35 -05:00
|
|
|
fn bar(self) -> impl Deref<Target = impl Sized>;
|
2022-09-22 19:56:55 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
pub struct Foreign;
|
|
|
|
impl Foo for Foreign {
|
2023-09-06 19:45:12 -05:00
|
|
|
#[expect(refining_impl_trait)]
|
2023-06-23 22:00:08 -05:00
|
|
|
fn bar(self) -> &'static () {
|
|
|
|
&()
|
|
|
|
}
|
2022-09-22 19:56:55 -05:00
|
|
|
}
|