diff --git a/tests/ui/pin_project/project_replace_unsized.stderr b/tests/ui/pin_project/project_replace_unsized.stderr index f77b2b64..87e0a6dc 100644 --- a/tests/ui/pin_project/project_replace_unsized.stderr +++ b/tests/ui/pin_project/project_replace_unsized.stderr @@ -60,11 +60,11 @@ error[E0277]: the size for values of type `T` cannot be known at compilation tim 7 | f: T, | ^ doesn't have a size known at compile-time | -note: required by a bound in `std::ptr::read` +note: required by an implicit `Sized` bound in `std::ptr::read` --> $RUST/core/src/ptr/mod.rs | | pub const unsafe fn read(src: *const T) -> T { - | ^ required by this bound in `read` + | ^ required by the implicit `Sized` requirement on this type parameter in `read` help: consider removing the `?Sized` bound to make the type parameter `Sized` | 6 - struct Struct { diff --git a/tests/ui/pin_project/project_replace_unsized_fn_params.stderr b/tests/ui/pin_project/project_replace_unsized_fn_params.stderr index eb88ace9..54531590 100644 --- a/tests/ui/pin_project/project_replace_unsized_fn_params.stderr +++ b/tests/ui/pin_project/project_replace_unsized_fn_params.stderr @@ -57,11 +57,11 @@ error[E0277]: the size for values of type `T` cannot be known at compilation tim 9 | f: T, | ^ doesn't have a size known at compile-time | -note: required by a bound in `std::ptr::read` +note: required by an implicit `Sized` bound in `std::ptr::read` --> $RUST/core/src/ptr/mod.rs | | pub const unsafe fn read(src: *const T) -> T { - | ^ required by this bound in `read` + | ^ required by the implicit `Sized` requirement on this type parameter in `read` help: consider removing the `?Sized` bound to make the type parameter `Sized` | 8 - struct Struct {