diff options
| author | Michael Goulet <michael@errs.io> | 2022-09-02 02:17:44 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2022-09-03 05:54:13 +0000 |
| commit | b0f3a551f2974eccf65b4477c9d7b2e42036d52f (patch) | |
| tree | 770446913e6afcd5455fb7d2a005bd0af75ba037 /src/test/ui/c-variadic | |
| parent | 0209485578807b8084127f12d57771300edff87a (diff) | |
| download | rust-b0f3a551f2974eccf65b4477c9d7b2e42036d52f.tar.gz rust-b0f3a551f2974eccf65b4477c9d7b2e42036d52f.zip | |
Shrink suggestion span of argument mismatch error
Diffstat (limited to 'src/test/ui/c-variadic')
| -rw-r--r-- | src/test/ui/c-variadic/variadic-ffi-1.stderr | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/ui/c-variadic/variadic-ffi-1.stderr b/src/test/ui/c-variadic/variadic-ffi-1.stderr index 176bec819d6..2ffb80f7ef6 100644 --- a/src/test/ui/c-variadic/variadic-ffi-1.stderr +++ b/src/test/ui/c-variadic/variadic-ffi-1.stderr @@ -18,7 +18,7 @@ LL | fn foo(f: isize, x: u8, ...); help: provide the arguments | LL | foo(/* isize */, /* u8 */); - | ~~~~~~~~~~~~~~~~~~~~~~~~~~ + | ~~~~~~~~~~~~~~~~~~~~~~~ error[E0060]: this function takes at least 2 arguments but 1 argument was supplied --> $DIR/variadic-ffi-1.rs:21:9 @@ -34,7 +34,7 @@ LL | fn foo(f: isize, x: u8, ...); help: provide the argument | LL | foo(1, /* u8 */); - | ~~~~~~~~~~~~~~~~ + | ~~~~~~~~~~~~~ error[E0308]: mismatched types --> $DIR/variadic-ffi-1.rs:23:56 |
