aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/tuple_struct1.rs
blob: 2f4cb4a353bba5bb9a55384bc9fa2ceb87f32a0f (plain)
1
2
3
4
5
6
7
8
struct Foo {
    one: i32,
    two: i32,
}

fn main() {
    let a = Foo(1, 2); // { dg-error "expected function, tuple struct or tuple variant, found struct 'Foo'" }
}