We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 838eab4 commit 74c85f3Copy full SHA for 74c85f3
gcc/testsuite/rust/compile/issue-2772-1.rs
@@ -0,0 +1,20 @@
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
gcc/testsuite/rust/compile/issue-2772-2.rs
+ let x = Pair::<&'_ _, &'_ _> {
0 commit comments