]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/removed-syntax-with-2.rs
Merge commit '7f27e2e74ef957baa382dc05cf08df6368165c74' into clippyup
[rust.git] / tests / ui / parser / removed-syntax-with-2.rs
1 fn main() {
2     struct S {
3         foo: (),
4         bar: (),
5     }
6
7     let a = S { foo: (), bar: () };
8     let b = S { foo: (), with a };
9     //~^ ERROR expected one of `,`, `:`, or `}`, found `a`
10     //~| ERROR missing field `bar` in initializer of `S`
11 }