2018-08-08 14:28:26 +02:00
|
|
|
error[E0423]: expected value, found struct `xcrate_unit_struct::StructWithFields`
|
2024-05-19 16:11:46 -07:00
|
|
|
--> $DIR/unit-struct.rs:9:13
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
LL | let _ = xcrate_unit_struct::StructWithFields;
|
2020-07-09 17:42:07 -07:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use struct literal syntax instead: `xcrate_unit_struct::StructWithFields { foo: val }`
|
2021-06-10 13:52:00 +02:00
|
|
|
|
|
2020-08-09 21:14:59 -07:00
|
|
|
::: $DIR/auxiliary/xcrate_unit_struct.rs:20:1
|
|
|
|
|
|
|
|
|
LL | pub struct StructWithFields {
|
|
|
|
| --------------------------- `xcrate_unit_struct::StructWithFields` defined here
|
2018-08-08 14:28:26 +02:00
|
|
|
|
2023-11-08 21:59:10 +00:00
|
|
|
error[E0423]: expected value, found struct `xcrate_unit_struct::StructWithPrivFields`
|
2024-05-19 16:11:46 -07:00
|
|
|
--> $DIR/unit-struct.rs:11:13
|
2023-11-08 21:59:10 +00:00
|
|
|
|
|
|
|
|
LL | let _ = xcrate_unit_struct::StructWithPrivFields;
|
2023-11-08 22:02:51 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2023-11-08 21:59:10 +00:00
|
|
|
|
|
|
|
|
::: $DIR/auxiliary/xcrate_unit_struct.rs:25:1
|
|
|
|
|
|
|
|
|
LL | pub struct StructWithPrivFields {
|
|
|
|
| ------------------------------- `xcrate_unit_struct::StructWithPrivFields` defined here
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0423`.
|