blob: 11db391c5489a711591e1620398ba35172eff57b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
fn main() {
struct S {
foo: (),
bar: (),
}
let a = S { foo: (), bar: () };
let b = S { foo: (), with a };
//~^ ERROR expected one of `,` or `}`, found `a`
//~| ERROR cannot find value `with` in this scope
//~| ERROR struct `main::S` has no field named `with`
}
|