about summary refs log tree commit diff
path: root/src/test/ui/suggestions
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2022-05-29 21:45:51 -0700
committerMichael Goulet <michael@errs.io>2022-06-27 21:53:03 -0700
commitf2277e03eeb112730e3f07fab0d6b91d195fe55c (patch)
treeb851f8b5553b58bdbb8857c94665b615a6c143c3 /src/test/ui/suggestions
parent7f08d04d60d03e1a52dae61ce6aa50996898702b (diff)
downloadrust-f2277e03eeb112730e3f07fab0d6b91d195fe55c.tar.gz
rust-f2277e03eeb112730e3f07fab0d6b91d195fe55c.zip
Use typed indices in argument mismatch algorithm
Diffstat (limited to 'src/test/ui/suggestions')
-rw-r--r--src/test/ui/suggestions/args-instead-of-tuple-errors.stderr4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/ui/suggestions/args-instead-of-tuple-errors.stderr b/src/test/ui/suggestions/args-instead-of-tuple-errors.stderr
index 3d367eca707..805c75f464c 100644
--- a/src/test/ui/suggestions/args-instead-of-tuple-errors.stderr
+++ b/src/test/ui/suggestions/args-instead-of-tuple-errors.stderr
@@ -2,7 +2,7 @@ error[E0061]: this enum variant takes 1 argument but 2 arguments were supplied
   --> $DIR/args-instead-of-tuple-errors.rs:6:34
    |
 LL |     let _: Option<(i32, bool)> = Some(1, 2);
-   |                                  ^^^^ -  - argument unexpected
+   |                                  ^^^^ -  - argument of type `{integer}` unexpected
    |                                       |
    |                                       expected tuple, found integer
    |
@@ -22,7 +22,7 @@ error[E0061]: this function takes 1 argument but 2 arguments were supplied
   --> $DIR/args-instead-of-tuple-errors.rs:8:5
    |
 LL |     int_bool(1, 2);
-   |     ^^^^^^^^ -  - argument unexpected
+   |     ^^^^^^^^ -  - argument of type `{integer}` unexpected
    |              |
    |              expected tuple, found integer
    |