Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
lifetimes
/
lifetime-inference-miss-15735.rs
blob: c75d59a2f4b4f3aad8b8470a7022b1a1a2d36f2d [
file
] [
log
] [
blame
]
// https://github.com/rust-lang/rust/issues/15735
//@ check-pass
#![
allow
(
dead_code
)]
struct
A
<
'
a
>
{
a
:
&
'
a i32
,
b
:
&
'
a i32
,
}
impl
<
'a> A<'
a
>
{
fn
foo
<
'b>(&'
b
self
)
{
A
{
a
:
self
.
a
,
b
:
self
.
b
,
};
}
}
fn
main
()
{
}