rust/src/test/ui/parser/removed-syntax-with-2.rs

13 lines
235 B
Rust
Raw Normal View History

// compile-flags: -Z parse-only
fn removed_with() {
struct S {
foo: (),
bar: (),
2012-09-05 17:58:43 -05:00
}
let a = S { foo: (), bar: () };
let b = S { foo: (), with a };
//~^ ERROR expected one of `,` or `}`, found `a`
}