Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
issues
/
issue-25279.rs
blob: 7d85a122e1734430dd921332393866281284ddf2 [
file
] [
log
] [
blame
] [
edit
]
//@ run-pass
struct
S
<
'a>(&'
a
());
impl
<
'a> S<'
a
>
{
fn
foo
(
self
)
->
&
'
a
()
{
<
Self
>::
bar
(
self
)
}
fn
bar
(
self
)
->
&
'
a
()
{
self
.
0
}
}
fn
main
()
{
S
(&()).
foo
();
}