aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/issue-2775.rs
blob: 3ad7085785ea7583c34b300d07a548f75455c3e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
// { dg-options "-w" }
#[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)>);
}