]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-50571.stderr
Rollup merge of #106427 - mejrs:translation_errors, r=davidtwco
[rust.git] / tests / ui / issues / issue-50571.stderr
1 error[E0642]: patterns aren't allowed in methods without bodies
2   --> $DIR/issue-50571.rs:4:12
3    |
4 LL |     fn foo([a, b]: [i32; 2]) {}
5    |            ^^^^^^
6    |
7 help: give this argument a name or use an underscore to ignore it
8    |
9 LL |     fn foo(_: [i32; 2]) {}
10    |            ~
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0642`.