rust/tests/ui/issues/issue-50571.stderr
Lukas Wirth 49969468b5 Add missing 2015 edition directives
These tests specifically test 2015 edition behavior, so ensure that they can only be run with this edition
2025-06-03 11:45:58 +02:00

16 lines
420 B
Plaintext

error[E0642]: patterns aren't allowed in methods without bodies
--> $DIR/issue-50571.rs:6:12
|
LL | fn foo([a, b]: [i32; 2]) {}
| ^^^^^^
|
help: give this argument a name or use an underscore to ignore it
|
LL - fn foo([a, b]: [i32; 2]) {}
LL + fn foo(_: [i32; 2]) {}
|
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0642`.