2018-08-08 07:28:26 -05:00
|
|
|
error[E0423]: expected value, found struct `xcrate_unit_struct::StructWithFields`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/xcrate-unit-struct.rs:9:13
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | let _ = xcrate_unit_struct::StructWithFields;
|
2020-07-09 19:42:07 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use struct literal syntax instead: `xcrate_unit_struct::StructWithFields { foo: val }`
|
2021-06-10 06:52:00 -05:00
|
|
|
|
|
2020-08-09 23:14:59 -05:00
|
|
|
::: $DIR/auxiliary/xcrate_unit_struct.rs:20:1
|
|
|
|
|
|
|
|
|
LL | pub struct StructWithFields {
|
|
|
|
| --------------------------- `xcrate_unit_struct::StructWithFields` defined here
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0423`.
|