Debian Codegraph @

gcc/testsuite/rust/compile/struct_init1.rs

raw
1 struct Foo {
2 a: f32,
3 b: f32,
4 }
5
6 fn main() {
7 let a = Foo { 0: 10.0, 1: 20.0 }; // { dg-error "failed to resolve type for field" }
8 // { dg-error "unknown field" "" { target *-*-* } .-1 }
9 // { dg-prune-output "compilation terminated" }
10 }