about summary refs log tree commit diff
path: root/tests/ui/enum/error-variant-with-turbofishes.stderr
blob: ffc2862bfe02d83c4e4c02664390425522e3f0f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 */ };
   |                                  ++++++++++++++++++

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0533`.