Sign in
android
/
toolchain
/
rustc
/
5139364148b53d79de1b5e778004d41a6a33a4a2
/
.
/
tests
/
ui
/
impl-trait
/
in-trait
/
auxiliary
/
rpitit.rs
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
()
{
&()
}
}