about summary refs log tree commit diff
path: root/tests/ui/fn
diff options
context:
space:
mode:
authorSasha Pourcelot <sasha.pourcelot@protonmail.com>2025-08-05 00:11:01 +0200
committerSasha Pourcelot <sasha.pourcelot@protonmail.com>2025-08-06 19:17:36 +0200
commit1e271d6ed13756db08160daaa327b99b7fe6099e (patch)
tree2be7cdb348220ca76d3d1b1a9b232726cbe6ddfb /tests/ui/fn
parentbdaabc17b664952ce0b9666b9b57188a6126935b (diff)
downloadrust-1e271d6ed13756db08160daaa327b99b7fe6099e.tar.gz
rust-1e271d6ed13756db08160daaa327b99b7fe6099e.zip
Allow function argument mismatch suggestion to be multiline
Diffstat (limited to 'tests/ui/fn')
-rw-r--r--tests/ui/fn/fn-arg-count-mismatch-diagnostics.stderr12
1 files changed, 4 insertions, 8 deletions
diff --git a/tests/ui/fn/fn-arg-count-mismatch-diagnostics.stderr b/tests/ui/fn/fn-arg-count-mismatch-diagnostics.stderr
index 494d9bf60a6..dda9b398a83 100644
--- a/tests/ui/fn/fn-arg-count-mismatch-diagnostics.stderr
+++ b/tests/ui/fn/fn-arg-count-mismatch-diagnostics.stderr
@@ -99,14 +99,10 @@ LL | fn function_with_lots_of_arguments(a: i32, b: char, c: i32, d: i32, e: i32,
    |    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^         -------
 help: provide the argument
    |
-LL -     function_with_lots_of_arguments(
-LL -         variable_name,
-LL -         variable_name,
-LL -         variable_name,
-LL -         variable_name,
-LL -         variable_name,
-LL -     );
-LL +     function_with_lots_of_arguments(variable_name, /* char */, variable_name, variable_name, variable_name, variable_name);
+LL |     function_with_lots_of_arguments(
+LL |         variable_name,
+LL ~         /* char */,
+LL ~         variable_name,
    |
 
 error: aborting due to 6 previous errors