rust/src/test/ui/resolve/issue-18252.stderr

11 lines
365 B
Plaintext
Raw Normal View History

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