aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/issue-2323.rs
blob: 02a3f90b4d81b710c894e291b95f0f4e5148942f (plain)
1
2
3
4
5
6
7
8
9
#[lang = "sized"]
trait Sized {}

pub struct S<T>(T);

pub fn foo<T>(x: T) {
    let y = S(x);
    y.0;
}