| 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 |
} |