about summary refs log tree commit diff
path: root/tests/ui/methods
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2025-02-20 23:05:38 +0000
committerMichael Goulet <michael@errs.io>2025-02-21 00:41:17 +0000
commit0a7ab1d6df4a2cfac819b0bada85b9142ac8ba26 (patch)
tree40adab0be475b174d0fa8d3041089a10f5b1b440 /tests/ui/methods
parent28b83ee59698ae069f5355b8e03f976406f410f5 (diff)
downloadrust-0a7ab1d6df4a2cfac819b0bada85b9142ac8ba26.tar.gz
rust-0a7ab1d6df4a2cfac819b0bada85b9142ac8ba26.zip
More sophisticated span trimming
Diffstat (limited to 'tests/ui/methods')
-rw-r--r--tests/ui/methods/method-call-err-msg.stderr15
1 files changed, 6 insertions, 9 deletions
diff --git a/tests/ui/methods/method-call-err-msg.stderr b/tests/ui/methods/method-call-err-msg.stderr
index 7cda928aca9..95de40ff891 100644
--- a/tests/ui/methods/method-call-err-msg.stderr
+++ b/tests/ui/methods/method-call-err-msg.stderr
@@ -28,9 +28,8 @@ LL |     fn one(self, _: isize) -> Foo { self }
    |        ^^^       --------
 help: provide the argument
    |
-LL -      .one()
-LL +      .one(/* isize */)
-   |
+LL |      .one(/* isize */)
+   |           +++++++++++
 
 error[E0061]: this method takes 2 arguments but 1 argument was supplied
   --> $DIR/method-call-err-msg.rs:15:7
@@ -45,9 +44,8 @@ LL |     fn two(self, _: isize, _: isize) -> Foo { self }
    |        ^^^                 --------
 help: provide the argument
    |
-LL -      .two(0);
-LL +      .two(0, /* isize */);
-   |
+LL |      .two(0, /* isize */);
+   |            +++++++++++++
 
 error[E0599]: `Foo` is not an iterator
   --> $DIR/method-call-err-msg.rs:19:7
@@ -84,9 +82,8 @@ LL |     fn three<T>(self, _: T, _: T, _: T) -> Foo { self }
    |        ^^^^^          ----  ----  ----
 help: provide the arguments
    |
-LL -     y.three::<usize>();
-LL +     y.three::<usize>(/* usize */, /* usize */, /* usize */);
-   |
+LL |     y.three::<usize>(/* usize */, /* usize */, /* usize */);
+   |                      +++++++++++++++++++++++++++++++++++++
 
 error: aborting due to 5 previous errors