summaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/torture/generics11.rs
blob: 3c8f5ba0058d3de7964a10f3f0a3e80923041efd (plain)
1
2
3
4
5
6
7
8
struct Foo<T>(T, u32);

type TypeAlias = Foo<i32>;

fn main() {
    let a: Foo<i32>;
    a = TypeAlias { 0: 123, 1: 456 };
}