2022-10-25 16:15:15 +00:00
|
|
|
error[E0533]: expected value, found struct variant `Foo::Variant`
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/issue-18252.rs:6:13
|
2016-11-30 22:35:25 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | let f = Foo::Variant(42);
|
2022-10-25 16:15:15 +00:00
|
|
|
| ^^^^^^^^^^^^ 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 f = Foo::Variant { x: /* value */ };
|
|
|
|
| ~~~~~~~~~~~~~~~~~~
|
2016-11-30 22:35:25 +00:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2016-11-30 22:35:25 +00:00
|
|
|
|
2022-10-25 16:15:15 +00:00
|
|
|
For more information about this error, try `rustc --explain E0533`.
|