]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issues/issue-34255-1.stderr
Rollup merge of #92399 - Veeupup:fix_vec_typo, r=Dylan-DPC
[rust.git] / src / test / 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