Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
issues
/
issue-27281.rs
blob: e76fd135dcd2322d3d70f26b41704a4ca48b5307 [
file
] [
log
] [
blame
] [
edit
]
//@ check-pass
pub
trait
Trait
<
'
a
>
{
type
T
;
type
U
;
fn
foo
(&
self
,
s
:
&
'a ()) -> &'
a
();
}
impl
<
'a> Trait<'
a
>
for
()
{
type
T
=
&
'
a
();
type
U
=
Self
::
T
;
fn
foo
(&
self
,
s
:
&
'a ()) -> &'
a
()
{
let
t
:
Self
::
T
=
s
;
t
}
}
fn
main
()
{}