rust/tests/ui/xcrate/xcrate-unit-struct.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
1.0 KiB
Plaintext
Raw Normal View History

2018-08-08 12:28:26 +00:00
error[E0423]: expected value, found struct `xcrate_unit_struct::StructWithFields`
2018-12-25 15:56:47 +00:00
--> $DIR/xcrate-unit-struct.rs:9:13
2018-08-08 12:28:26 +00:00
|
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
2018-08-08 12:28:26 +00:00
error[E0423]: expected value, found struct `xcrate_unit_struct::StructWithPrivFields`
--> $DIR/xcrate-unit-struct.rs:11:13
|
LL | let _ = xcrate_unit_struct::StructWithPrivFields;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: $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 12:28:26 +00:00
For more information about this error, try `rustc --explain E0423`.