☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
rust
/
compile
/
issue-2772-2.rs
☽
☼
gcc/testsuite/rust/compile/issue-2772-2.rs
code
plain
raw
1
// { dg-options "-w" }
2
#[lang = "sized"]
3
pub trait Sized {}
4
5
struct Pair<'a, T, U>
6
where
7
T: 'a,
8
U: 'a,
9
{
10
left: T,
11
right: U,
12
}
13
14
pub fn test<'a>() {
15
let a: i32 = 50;
16
let x = Pair::<&'_ _, &'_ _> {
17
left: &&a,
18
right: &a,
19
};
20
}