diff options
| author | Jason Newcomb <jsnewcomb@pm.me> | 2025-02-05 09:28:35 -0500 |
|---|---|---|
| committer | Jason Newcomb <jsnewcomb@pm.me> | 2025-02-05 10:36:32 -0500 |
| commit | 4718cb40ecd5e68ae7c5d056d48c60b5e9c1d1ef (patch) | |
| tree | 08259abf2023a82cc024df802c68df54fb276426 /tests/ui/span | |
| parent | 820bfffc25fee9866aa8176529091e04b8824f09 (diff) | |
| download | rust-4718cb40ecd5e68ae7c5d056d48c60b5e9c1d1ef.tar.gz rust-4718cb40ecd5e68ae7c5d056d48c60b5e9c1d1ef.zip | |
When displaying a parameter mismatch error, only highlight the mismatched parameters when showing the definition.
Diffstat (limited to 'tests/ui/span')
| -rw-r--r-- | tests/ui/span/issue-34264.stderr | 4 | ||||
| -rw-r--r-- | tests/ui/span/missing-unit-argument.stderr | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/ui/span/issue-34264.stderr b/tests/ui/span/issue-34264.stderr index b581cdd0be2..c8046a1bddf 100644 --- a/tests/ui/span/issue-34264.stderr +++ b/tests/ui/span/issue-34264.stderr @@ -60,7 +60,7 @@ note: function defined here --> $DIR/issue-34264.rs:1:4 | LL | fn foo(Option<i32>, String) {} - | ^^^ ----------- ------ + | ^^^ help: remove the extra argument | LL - foo(Some(42), 2, ""); @@ -91,7 +91,7 @@ note: function defined here --> $DIR/issue-34264.rs:3:4 | LL | fn bar(x, y: usize) {} - | ^^^ - -------- + | ^^^ help: remove the extra argument | LL - bar(1, 2, 3); diff --git a/tests/ui/span/missing-unit-argument.stderr b/tests/ui/span/missing-unit-argument.stderr index 79980f48ab6..6261831b752 100644 --- a/tests/ui/span/missing-unit-argument.stderr +++ b/tests/ui/span/missing-unit-argument.stderr @@ -37,7 +37,7 @@ note: function defined here --> $DIR/missing-unit-argument.rs:1:4 | LL | fn foo(():(), ():()) {} - | ^^^ ----- ----- + | ^^^ ----- help: provide the argument | LL | foo((), ()); |
