blob: 39b444498102c5a360b7c107e30f697cfdbd6191 [file] [log] [blame]
error[E0423]: expected function, tuple struct or tuple variant, found struct variant `Foo::Variant`
--> $DIR/issue-18252.rs:6:13
|
LL | Variant { x: usize }
| -------------------- `Foo::Variant` defined here
...
LL | let f = Foo::Variant(42);
| ^^^^^^^^^^^^ did you mean `Foo::Variant { /* fields */ }`?
error: aborting due to previous error
For more information about this error, try `rustc --explain E0423`.