about summary refs log tree commit diff
path: root/tests/ui/parser
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2024-01-24 02:52:29 +0000
committerEsteban Küber <esteban@kuber.com.ar>2024-01-24 02:53:15 +0000
commita9841936fe25d3d2841a02abfdb2da2342a3dbcf (patch)
tree70fe579803d4eed1718eb9cf78808339db8e9830 /tests/ui/parser
parent0b7730105fb7e008002f6ba29f87a55699f67744 (diff)
Deduplicate more sized errors on call exprs
Change the implicit `Sized` `Obligation` `Span` for call expressions to
include the whole expression. This aids the existing deduplication
machinery to reduce the number of errors caused by a single unsized
expression.
Diffstat (limited to 'tests/ui/parser')
-rw-r--r--tests/ui/parser/recover/recover-fn-trait-from-fn-kw.stderr5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/ui/parser/recover/recover-fn-trait-from-fn-kw.stderr b/tests/ui/parser/recover/recover-fn-trait-from-fn-kw.stderr
index 3681a796c53..17138a6f079 100644
--- a/tests/ui/parser/recover/recover-fn-trait-from-fn-kw.stderr
+++ b/tests/ui/parser/recover/recover-fn-trait-from-fn-kw.stderr
@@ -30,8 +30,9 @@ error[E0631]: type mismatch in closure arguments
   --> $DIR/recover-fn-trait-from-fn-kw.rs:10:5
    |
 LL |     foo2(|_: ()| {});
-   |     ^^^^ ------- found signature defined here
-   |     |
+   |     ^^^^^-------^^^^
+   |     |    |
+   |     |    found signature defined here
    |     expected due to this
    |
    = note: expected closure signature `fn(i32) -> _`