Sign in
gnu
/
gcc.git
/
refs/heads/master
/
.
/
gcc
/
testsuite
/
rust
/
compile
/
issue-2775.rs
blob: d67ced3e270d34214682eaff3fa0de7c32a22a4c [
file
] [
log
] [
blame
]
// { dg-options "-w" }
#![
feature
(
lang_items
)]
#[
lang
=
"sized"
]
pub
trait
Sized
{}
struct
Ref
<
'
a
,
T
>
{
x
:
&
'
a T
,
}
pub
fn
test
<
'a, '
b
,
'
c
>()
{
let
(
_
,
&&
Ref
::<(&
'_ i32, i32)> { x: &(a, b) }): (i32, &'
_
&
'b Ref<'
b
,
(&
'
c i32
,
i32
)>);
}