mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 03:03:40 +00:00
11 lines
365 B
Plaintext
11 lines
365 B
Plaintext
|
error[E0423]: `Foo::Variant` is the name of a struct or struct variant, but this expression uses it like a function name
|
||
|
--> $DIR/issue-18252.rs:16:13
|
||
|
|
|
||
|
16 | let f = Foo::Variant(42);
|
||
|
| ^^^^^^^^^^^^ struct called like a function
|
||
|
|
|
||
|
= help: did you mean to write: `Foo::Variant { /* fields */ }`?
|
||
|
|
||
|
error: aborting due to previous error
|
||
|
|