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
|
|
|
|
2017-05-22 06:46:05 -05:00
|
|
|
error: aborting due to previous error(s)
|
2016-11-30 16:35:25 -06:00
|
|
|
|