diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2023-08-24 19:23:06 +0000 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2023-08-26 01:07:05 +0000 |
| commit | 120c24dab5806d458513b399151a411cb367697f (patch) | |
| tree | 16006a43d6afd486e3baff7937795895459c809e /tests/ui/unsized | |
| parent | ac89e1615d78a9a89bf35047ae4413fcc1c8e875 (diff) | |
| download | rust-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.stderr | 12 |
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 |
