diff options
author | Haibo Huang <hhb@google.com> | 2020-11-18 15:37:31 -0800 |
---|---|---|
committer | Haibo Huang <hhb@google.com> | 2020-11-18 15:37:31 -0800 |
commit | 6c94c6bafeee5322a4502f48fd53bf0269f144cc (patch) | |
tree | 62e1173064643de076d5710596b3cd6d390f4d00 /tests/ui/pin_project/project_replace_unsized_fn_params.stderr | |
parent | cd6b1713c13e53065c66512d3ba0a578bbf22830 (diff) | |
download | pin-project-6c94c6bafeee5322a4502f48fd53bf0269f144cc.tar.gz |
Upgrade rust/crates/pin-project to 1.0.2
Test: make
Change-Id: Ia85e48e7fd669c568d9abc6a68934b8cfdb13f09
Diffstat (limited to 'tests/ui/pin_project/project_replace_unsized_fn_params.stderr')
-rw-r--r-- | tests/ui/pin_project/project_replace_unsized_fn_params.stderr | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/tests/ui/pin_project/project_replace_unsized_fn_params.stderr b/tests/ui/pin_project/project_replace_unsized_fn_params.stderr new file mode 100644 index 0000000..622d12f --- /dev/null +++ b/tests/ui/pin_project/project_replace_unsized_fn_params.stderr @@ -0,0 +1,53 @@ +error[E0277]: the size for values of type `T` cannot be known at compilation time + --> $DIR/project_replace_unsized_fn_params.rs:6:8 + | +6 | struct Struct<T: ?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>` + = note: the return type of a function must have a statically known size + +error[E0277]: the size for values of type `T` cannot be known at compilation time + --> $DIR/project_replace_unsized_fn_params.rs:7:5 + | +6 | struct Struct<T: ?Sized> { + | - 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 + --> $DIR/project_replace_unsized_fn_params.rs:5:1 + | +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 `Sized` + | + = note: required because it appears within the type `__StructProjectionOwned<T>` + = note: structs must have a statically known size to be initialized + = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) + +error[E0277]: the size for values of type `T` cannot be known at compilation time + --> $DIR/project_replace_unsized_fn_params.rs:11:8 + | +11 | struct TupleStruct<T: ?Sized>(T); + | ^^^^^^^^^^^^-^^^^^^^^^ + | | | + | | 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>` + = note: the return type of a function must have a statically known size + +error[E0277]: the size for values of type `T` cannot be known at compilation time + --> $DIR/project_replace_unsized_fn_params.rs:10:1 + | +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 `Sized` + | + = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) |