diff options
Diffstat (limited to 'tests/ui/pin_project/project_replace_unsized_locals.stderr')
-rw-r--r-- | tests/ui/pin_project/project_replace_unsized_locals.stderr | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/ui/pin_project/project_replace_unsized_locals.stderr b/tests/ui/pin_project/project_replace_unsized_locals.stderr index 1266c4d..ad965e5 100644 --- a/tests/ui/pin_project/project_replace_unsized_locals.stderr +++ b/tests/ui/pin_project/project_replace_unsized_locals.stderr @@ -4,7 +4,7 @@ error[E0277]: the size for values of type `T` cannot be known at compilation tim 6 | struct Struct<T: ?Sized> { | ^^^^^^^-^^^^^^^^^ | | | - | | this type parameter needs to be `std::marker::Sized` + | | this type parameter needs to be `Sized` | doesn't have a size known at compile-time | = note: required because it appears within the type `__StructProjectionOwned<T>` @@ -14,8 +14,8 @@ error[E0277]: the size for values of type `T` cannot be known at compilation tim --> $DIR/project_replace_unsized_locals.rs:7:5 | 6 | struct Struct<T: ?Sized> { - | - this type parameter needs to be `std::marker::Sized` -7 | x: T, + | - this type parameter needs to be `Sized` +7 | f: T, | ^ doesn't have a size known at compile-time error[E0277]: the size for values of type `T` cannot be known at compilation time @@ -24,7 +24,7 @@ error[E0277]: the size for values of type `T` cannot be known at compilation tim 5 | #[pin_project(project_replace)] //~ ERROR E0277 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time 6 | struct Struct<T: ?Sized> { - | - this type parameter needs to be `std::marker::Sized` + | - this type parameter needs to be `Sized` | = note: required because it appears within the type `__StructProjectionOwned<T>` = note: structs must have a statically known size to be initialized @@ -36,7 +36,7 @@ error[E0277]: the size for values of type `T` cannot be known at compilation tim 11 | struct TupleStruct<T: ?Sized>(T); | ^^^^^^^^^^^^-^^^^^^^^^ | | | - | | this type parameter needs to be `std::marker::Sized` + | | this type parameter needs to be `Sized` | doesn't have a size known at compile-time | = note: required because it appears within the type `__TupleStructProjectionOwned<T>` @@ -48,6 +48,6 @@ error[E0277]: the size for values of type `T` cannot be known at compilation tim 10 | #[pin_project(project_replace)] //~ ERROR E0277 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time 11 | struct TupleStruct<T: ?Sized>(T); - | - this type parameter needs to be `std::marker::Sized` + | - this type parameter needs to be `Sized` | = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) |