1 error[E0423]: expected function, found struct variant `Foo::Variant`
2 --> $DIR/issue-18252.rs:6:13
4 LL | let f = Foo::Variant(42);
5 | ^^^^^^^^^^^^ did you mean `Foo::Variant { /* fields */ }`?
7 error: aborting due to previous error
9 For more information about this error, try `rustc --explain E0423`.