Sign in
rust
/
rust-lang
/
rust
/
HEAD
/
.
/
src
/
tools
/
rustfmt
/
tests
/
source
/
issue_4257.rs
blob: 9482512efca0a4dd94062b992478ddc6a95e1795 [
file
] [
log
] [
blame
]
trait
Trait
<
T
>
{
type
Type
<
'a> where T: '
a
;
fn
foo
(
x
:
&
T
)
->
Self
::
Type
<
'
_
>;
}
impl
<
T
>
Trait
<
T
>
for
()
{
type
Type
<
'a> where T: '
a
=
&
'
a T
;
fn
foo
(
x
:
&
T
)
->
Self
::
Type
<
'
_
>
{
x
}
}