blob: cc9f4e2a78eb6f7bc6234ebf4681f78a0062683b [file]
// { dg-options "-w" }
#![feature(no_core)]
#![no_core]
#![feature(lang_items)]
#[lang = "sized"]
pub trait Sized {}
struct Pair<'a, T, U>
where
T: 'a,
U: 'a,
{
left: T,
right: U,
}
pub fn test<'a>() {
let a: i32 = 50;
let x = Pair::<&'_ _, &'_ _> {
left: &&a,
right: &a,
};
}