about summary refs log tree commit diff
path: root/src/test/ui/parser
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2022-06-27 07:45:35 +0200
committerCamille GILLOT <gillot.camille@gmail.com>2022-07-07 09:27:42 +0200
commit8cc87250efc5b5fcec85d43eaa73f7a9acc2198a (patch)
tree557e653c2ca76d3ef22a23081e433102fff2186b /src/test/ui/parser
parente78e747f53c36e53ff99c94438d2efa26830fc4b (diff)
Shorten span for closures.
Diffstat (limited to 'src/test/ui/parser')
-rw-r--r--src/test/ui/parser/expr-as-stmt.stderr2
-rw-r--r--src/test/ui/parser/struct-literal-restrictions-in-lamda.stderr2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/ui/parser/expr-as-stmt.stderr b/src/test/ui/parser/expr-as-stmt.stderr
index d4f64a7de5b..858b4e8db05 100644
--- a/src/test/ui/parser/expr-as-stmt.stderr
+++ b/src/test/ui/parser/expr-as-stmt.stderr
@@ -200,7 +200,7 @@ LL |     { true } || { true }
    |              ^^^^^^^^^^^ expected `bool`, found closure
    |
    = note: expected type `bool`
-           found closure `[closure@$DIR/expr-as-stmt.rs:51:14: 51:25]`
+           found closure `[closure@$DIR/expr-as-stmt.rs:51:14: 51:16]`
 help: use parentheses to call this closure
    |
 LL |     { true } (|| { true })()
diff --git a/src/test/ui/parser/struct-literal-restrictions-in-lamda.stderr b/src/test/ui/parser/struct-literal-restrictions-in-lamda.stderr
index e71f15ebfd2..0852c7cb470 100644
--- a/src/test/ui/parser/struct-literal-restrictions-in-lamda.stderr
+++ b/src/test/ui/parser/struct-literal-restrictions-in-lamda.stderr
@@ -24,7 +24,7 @@ LL | |     }.hi() {
    | |__________^ expected `bool`, found closure
    |
    = note: expected type `bool`
-           found closure `[closure@$DIR/struct-literal-restrictions-in-lamda.rs:12:11: 14:11]`
+           found closure `[closure@$DIR/struct-literal-restrictions-in-lamda.rs:12:11: 12:13]`
 help: use parentheses to call this closure
    |
 LL ~     while (|| Foo {