1 error[E0533]: expected value, found struct variant `Foo::Variant`
2 --> $DIR/issue-18252.rs:6:13
4 LL | let f = Foo::Variant(42);
5 | ^^^^^^^^^^^^ not a value
7 error: aborting due to previous error
9 For more information about this error, try `rustc --explain E0533`.