]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/removed-syntax-with-1.rs
Auto merge of #56827 - faern:eliminate-recv-timeout-panic, r=KodrAus
[rust.git] / src / test / ui / parser / removed-syntax-with-1.rs
1 // compile-flags: -Z parse-only
2
3 fn removed_with() {
4     struct S {
5         foo: (),
6         bar: (),
7     }
8
9     let a = S { foo: (), bar: () };
10     let b = S { foo: () with a };
11     //~^ ERROR expected one of `,`, `.`, `?`, `}`, or an operator, found `with`
12 }