rust/tests/ui/enum/error-variant-with-turbofishes.stderr

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

15 lines
514 B
Plaintext
Raw Normal View History

2024-04-14 09:51:25 -05: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
|
help: you might have meant to create a new value of the struct
|
LL | let x = Struct::<0>::Variant { x: /* value */ };
| ++++++++++++++++++
2024-04-14 09:51:25 -05:00
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0533`.