summaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/torture/struct_init_2.rs
blob: d7040d3d96df40b086fa2264de17a7c7dafced94 (plain)
1
2
3
4
5
6
struct Foo(f32, f32);

fn main() {
    let a = Foo { 0: 10.0, 1: 20.0 };
    // { dg-warning "unused name" "" { target *-*-* } .-1 }
}