diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-50571.stderr | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-50571.stderr b/src/test/ui/issues/issue-50571.stderr new file mode 100644 index 000000000..f69963bb7 --- /dev/null +++ b/src/test/ui/issues/issue-50571.stderr @@ -0,0 +1,14 @@ +error[E0642]: patterns aren't allowed in methods without bodies + --> $DIR/issue-50571.rs:4:12 + | +LL | fn foo([a, b]: [i32; 2]) {} + | ^^^^^^ + | +help: give this argument a name or use an underscore to ignore it + | +LL | fn foo(_: [i32; 2]) {} + | ~ + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0642`. |