Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
issues
/
issue-27281.rs
blob: 717d8b2c2aa372261afae6520033aba570cd9f75 [
file
] [
log
] [
blame
]
// 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
()
{}