1 error: struct literal body without path
2 --> $DIR/bare-struct-body.rs:5:17
10 help: you might have forgotten to add the struct literal inside the block
12 LL ~ fn foo() -> Foo { SomeStruct {
17 error: struct literal body without path
18 --> $DIR/bare-struct-body.rs:12:13
26 help: you might have forgotten to add the struct literal inside the block
28 LL ~ let x = { SomeStruct {
33 error[E0308]: mismatched types
34 --> $DIR/bare-struct-body.rs:11:14
37 | ^^ expected `()`, found integer
39 error: aborting due to 3 previous errors
41 For more information about this error, try `rustc --explain E0308`.