about summary refs log tree commit diff
path: root/tests/ui/unsized
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2023-08-24 19:23:06 +0000
committerEsteban Küber <esteban@kuber.com.ar>2023-08-26 01:07:05 +0000
commit120c24dab5806d458513b399151a411cb367697f (patch)
tree16006a43d6afd486e3baff7937795895459c809e /tests/ui/unsized
parentac89e1615d78a9a89bf35047ae4413fcc1c8e875 (diff)
downloadrust-120c24dab5806d458513b399151a411cb367697f.tar.gz
rust-120c24dab5806d458513b399151a411cb367697f.zip
Point at appropriate type parameter in more trait bound errors
Diffstat (limited to 'tests/ui/unsized')
-rw-r--r--tests/ui/unsized/unsized3.stderr12
1 files changed, 4 insertions, 8 deletions
diff --git a/tests/ui/unsized/unsized3.stderr b/tests/ui/unsized/unsized3.stderr
index 3ef9a875358..a11243980d1 100644
--- a/tests/ui/unsized/unsized3.stderr
+++ b/tests/ui/unsized/unsized3.stderr
@@ -1,12 +1,10 @@
 error[E0277]: the size for values of type `X` cannot be known at compilation time
-  --> $DIR/unsized3.rs:7:13
+  --> $DIR/unsized3.rs:7:10
    |
 LL | fn f1<X: ?Sized>(x: &X) {
    |       - this type parameter needs to be `Sized`
 LL |     f2::<X>(x);
-   |     ------- ^ doesn't have a size known at compile-time
-   |     |
-   |     required by a bound introduced by this call
+   |          ^ doesn't have a size known at compile-time
    |
 note: required by a bound in `f2`
   --> $DIR/unsized3.rs:10:7
@@ -24,14 +22,12 @@ LL | fn f2<X: ?Sized>(x: &X) {
    |        ++++++++
 
 error[E0277]: the size for values of type `X` cannot be known at compilation time
-  --> $DIR/unsized3.rs:18:13
+  --> $DIR/unsized3.rs:18:10
    |
 LL | fn f3<X: ?Sized + T>(x: &X) {
    |       - this type parameter needs to be `Sized`
 LL |     f4::<X>(x);
-   |     ------- ^ doesn't have a size known at compile-time
-   |     |
-   |     required by a bound introduced by this call
+   |          ^ doesn't have a size known at compile-time
    |
 note: required by a bound in `f4`
   --> $DIR/unsized3.rs:21:7