summaryrefslogtreecommitdiffstats
path: root/tests/ui/xcrate/xcrate-unit-struct.stderr
blob: cee314568887c5d21859ed4de4f807b35813b4e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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`.