1 error[E0423]: expected function, tuple struct or tuple variant, found struct variant `Foo::Variant`
2 --> $DIR/issue-18252.rs:6:13
4 LL | Variant { x: usize }
5 | -------------------- `Foo::Variant` defined here
7 LL | let f = Foo::Variant(42);
8 | ^^^^^^^^^^^^^^^^ help: use struct literal syntax instead: `Foo::Variant { x: val }`
10 error: aborting due to previous error
12 For more information about this error, try `rustc --explain E0423`.