mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 15:54:15 +00:00
15 lines
613 B
Plaintext
15 lines
613 B
Plaintext
error[E0423]: expected value, found struct `xcrate_unit_struct::StructWithFields`
|
|
--> $DIR/xcrate-unit-struct.rs:9:13
|
|
|
|
|
LL | let _ = xcrate_unit_struct::StructWithFields;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use struct literal syntax instead: `xcrate_unit_struct::StructWithFields { foo: val }`
|
|
|
|
|
::: $DIR/auxiliary/xcrate_unit_struct.rs:20:1
|
|
|
|
|
LL | pub struct StructWithFields {
|
|
| --------------------------- `xcrate_unit_struct::StructWithFields` defined here
|
|
|
|
error: aborting due to previous error
|
|
|
|
For more information about this error, try `rustc --explain E0423`.
|