Skip to content

Commit 6c13acf

Browse files
committed
WIP
1 parent 7983eab commit 6c13acf

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Diff for: tests/ui/mismatched_types/generic-mismatch-reporting-issue-116615.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ fn main() {
1111
//~^ ERROR arguments to this function are incorrect
1212
foo_multi_generics("a", "b", "c", true, false, 32, 2.);
1313
//~^ ERROR arguments to this function are incorrect
14-
foo_same_generics("a", 1, "c", 2);
14+
foo_same_generics("a", 1, 2, "c");
1515
//~^ ERROR arguments to this function are incorrect
1616
}

Diff for: tests/ui/mismatched_types/generic-mismatch-reporting-issue-116615.stderr

+4-4
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,11 @@ note: function defined here
9090
--> $DIR/generic-mismatch-reporting-issue-116615.rs:4:4
9191
|
9292
LL | fn foo_same_generics<T, T>(a: T, b: T, c: T, d: T) {}
93-
| ^^^^^^^^^^^^^^^^^ - - ---- ---- ---- ---- this parameter needs to match the `&str` type of `a` and `c`
93+
| ^^^^^^^^^^^^^^^^^ - - ---- ---- ---- ---- `b` and `c` need to match the `&str` type of this parameter
9494
| | | | | |
95-
| | | | | `b` and `d` need to match the `&str` type of this parameter
96-
| | | | this parameter needs to match the `&str` type of `a` and `c`
97-
| | | `b` and `d` need to match the `&str` type of this parameter
95+
| | | | | this parameter needs to match the `&str` type of `a` and `d`
96+
| | | | this parameter needs to match the `&str` type of `a` and `d`
97+
| | | `b` and `c` need to match the `&str` type of this parameter
9898
| | `a`, `b`, `c` and `d` all reference this parameter T
9999
| `a`, `b`, `c` and `d` all reference this parameter T
100100

0 commit comments

Comments
 (0)