2016-11-30 16:35:25 -06:00
|
|
|
error[E0423]: expected function, found struct variant `Foo::Variant`
|
2016-11-30 16:35:25 -06:00
|
|
|
--> $DIR/issue-18252.rs:16:13
|
|
|
|
|
|
|
|
|
16 | let f = Foo::Variant(42);
|
2016-11-30 16:35:25 -06:00
|
|
|
| ^^^^^^^^^^^^ did you mean `Foo::Variant { /* fields */ }`?
|
2016-11-30 16:35:25 -06:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|