Sign in
rust
/
rust-lang
/
rust
/
refs/heads/beta
/
.
/
tests
/
ui
/
impl-trait
/
in-trait
/
auxiliary
/
rpitit.rs
blob: f6120b3fc70e01b82a9343c2d379b45cf2e294ed [
file
] [
log
] [
blame
]
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
()
{
&()
}
}