2021-09-07 12:45:16 -05:00
|
|
|
error: invalid `struct` delimiters or `fn` call arguments
|
|
|
|
--> $DIR/issue-34255-1.rs:8:5
|
2019-03-12 21:27:10 -05:00
|
|
|
|
|
|
|
|
LL | Test::Drill(field: 42);
|
2021-09-07 12:45:16 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
2019-03-12 21:27:10 -05:00
|
|
|
|
|
2021-09-07 12:45:16 -05:00
|
|
|
help: if `Test::Drill` is a struct, use braces as delimiters
|
|
|
|
|
|
|
|
|
LL | Test::Drill { field: 42 };
|
|
|
|
| ~ ~
|
|
|
|
help: if `Test::Drill` is a function, use the arguments directly
|
|
|
|
|
|
|
|
|
LL - Test::Drill(field: 42);
|
|
|
|
LL + Test::Drill(42);
|
2022-06-08 12:34:57 -05:00
|
|
|
|
|
2019-03-12 21:27:10 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|