]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/removed-syntax-with-1.rs
Merge commit '598f0909568a51de8a2d1148f55a644fd8dffad0' into sync_cg_clif-2023-01-24
[rust.git] / tests / ui / parser / removed-syntax-with-1.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, bar: () };
9     //~^ ERROR expected one of `,`, `.`, `?`, `}`, or an operator, found `with`
10 }