]> git.lizzy.rs Git - rust.git/blob - tests/ui/structs/struct-fields-hints-no-dupe.rs
internally change regions to be covariant
[rust.git] / tests / ui / structs / struct-fields-hints-no-dupe.rs
1 struct A {
2     foo : i32,
3     car : i32,
4     barr : i32
5 }
6
7 fn main() {
8     let a = A {
9         foo : 5,
10         bar : 42,
11         //~^ ERROR struct `A` has no field named `bar`
12         car : 9,
13     };
14 }