]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/issues/issue-34255-1.stderr
Rollup merge of #106470 - ehuss:tidy-no-wasm, r=Mark-Simulacrum
[rust.git] / tests / ui / parser / issues / issue-34255-1.stderr
1 error: invalid `struct` delimiters or `fn` call arguments
2   --> $DIR/issue-34255-1.rs:8:5
3    |
4 LL |     Test::Drill(field: 42);
5    |     ^^^^^^^^^^^^^^^^^^^^^^
6    |
7 help: if `Test::Drill` is a struct, use braces as delimiters
8    |
9 LL |     Test::Drill { field: 42 };
10    |                 ~           ~
11 help: if `Test::Drill` is a function, use the arguments directly
12    |
13 LL -     Test::Drill(field: 42);
14 LL +     Test::Drill(42);
15    |
16
17 error: aborting due to previous error
18