2024-04-14 10:51:25 -04:00
|
|
|
error[E0533]: expected value, found struct variant `Struct<0>::Variant`
|
|
|
|
|
--> $DIR/error-variant-with-turbofishes.rs:4:13
|
|
|
|
|
|
|
|
|
|
|
LL | let x = Struct::<0>::Variant;
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ not a value
|
2024-07-11 16:23:03 +00:00
|
|
|
|
|
|
|
|
|
help: you might have meant to create a new value of the struct
|
|
|
|
|
|
|
|
|
|
|
LL | let x = Struct::<0>::Variant { x: /* value */ };
|
|
|
|
|
| ++++++++++++++++++
|
2024-04-14 10:51:25 -04:00
|
|
|
|
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0533`.
|