diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2023-01-02 18:00:33 -0800 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2023-01-30 20:12:19 +0000 |
| commit | 62ba3e70a1f01d801d068b84a097e38bd82a8c6e (patch) | |
| tree | e7834f2924d6a0aa0ef7eddb6bb9b2db50b2be1d /tests/ui/tuple | |
| parent | 006ca9b14da1e0145844598b3d6a554c042c702a (diff) | |
| download | rust-62ba3e70a1f01d801d068b84a097e38bd82a8c6e.tar.gz rust-62ba3e70a1f01d801d068b84a097e38bd82a8c6e.zip | |
Modify primary span label for E0308
The previous output was unintuitive to users.
Diffstat (limited to 'tests/ui/tuple')
| -rw-r--r-- | tests/ui/tuple/add-tuple-within-arguments.stderr | 2 | ||||
| -rw-r--r-- | tests/ui/tuple/wrong_argument_ice-3.stderr | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/tuple/add-tuple-within-arguments.stderr b/tests/ui/tuple/add-tuple-within-arguments.stderr index 2e20a4cca08..6849128eadd 100644 --- a/tests/ui/tuple/add-tuple-within-arguments.stderr +++ b/tests/ui/tuple/add-tuple-within-arguments.stderr @@ -18,7 +18,7 @@ error[E0308]: mismatched types --> $DIR/add-tuple-within-arguments.rs:8:15 | LL | bar("hi", "hi", "hi"); - | --- ^^^^ expected tuple, found `&str` + | --- ^^^^ expected `(&str,)`, found `&str` | | | arguments to this function are incorrect | diff --git a/tests/ui/tuple/wrong_argument_ice-3.stderr b/tests/ui/tuple/wrong_argument_ice-3.stderr index 0a503e1fe58..75dfe716395 100644 --- a/tests/ui/tuple/wrong_argument_ice-3.stderr +++ b/tests/ui/tuple/wrong_argument_ice-3.stderr @@ -4,7 +4,7 @@ error[E0061]: this method takes 1 argument but 2 arguments were supplied LL | groups.push(new_group, vec![process]); | ^^^^ ------------- argument of type `Vec<&Process>` unexpected | -note: expected tuple, found struct `Vec` +note: expected `(Vec<String>, Vec<Process>)`, found `Vec<String>` --> $DIR/wrong_argument_ice-3.rs:9:21 | LL | groups.push(new_group, vec![process]); |
