blob: 13e7a59732db1562a16665b127c77a3cfc5ef9ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
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);
| ^^^^^^^^^^^^^^^^ help: use struct literal syntax instead: `Foo::Variant { x: val }`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0423`.
|