diff options
| author | Esteban Kuber <esteban@kuber.com.ar> | 2021-09-07 11:30:53 +0000 |
|---|---|---|
| committer | Esteban Kuber <esteban@kuber.com.ar> | 2021-09-16 12:12:27 +0000 |
| commit | 569a842730851ea8521f20f48fa96fd9f3e5db95 (patch) | |
| tree | a33dd6228cb9f0b7fb6ff0a4ba393653cd320a88 /src/test/ui/box | |
| parent | 8a3f712518ffecb8115d60618654b984adcb8003 (diff) | |
Point at call span that introduced obligation for the arg
Diffstat (limited to 'src/test/ui/box')
| -rw-r--r-- | src/test/ui/box/into-boxed-slice-fail.stderr | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/test/ui/box/into-boxed-slice-fail.stderr b/src/test/ui/box/into-boxed-slice-fail.stderr index 5e3b43a47ee..2f1dec9d209 100644 --- a/src/test/ui/box/into-boxed-slice-fail.stderr +++ b/src/test/ui/box/into-boxed-slice-fail.stderr @@ -2,7 +2,9 @@ error[E0277]: the size for values of type `[u8]` cannot be known at compilation --> $DIR/into-boxed-slice-fail.rs:7:35 | LL | let _ = Box::into_boxed_slice(boxed_slice); - | ^^^^^^^^^^^ doesn't have a size known at compile-time + | --------------------- ^^^^^^^^^^^ doesn't have a size known at compile-time + | | + | required by a bound introduced by this call | = help: the trait `Sized` is not implemented for `[u8]` note: required by `Box::<T, A>::into_boxed_slice` @@ -24,7 +26,9 @@ error[E0277]: the size for values of type `dyn Debug` cannot be known at compila --> $DIR/into-boxed-slice-fail.rs:11:35 | LL | let _ = Box::into_boxed_slice(boxed_trait); - | ^^^^^^^^^^^ doesn't have a size known at compile-time + | --------------------- ^^^^^^^^^^^ doesn't have a size known at compile-time + | | + | required by a bound introduced by this call | = help: the trait `Sized` is not implemented for `dyn Debug` note: required by `Box::<T, A>::into_boxed_slice` |
