aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/pin_project/project_replace_unsized_fn_params.stderr
diff options
context:
space:
mode:
authorHaibo Huang <hhb@google.com>2021-02-24 09:45:33 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-02-24 09:45:33 +0000
commit839279b45646240b2dae0119f58d63c1a385e726 (patch)
treeaa583765ea0c0fd8bddb46d99bb04eae1334edd3 /tests/ui/pin_project/project_replace_unsized_fn_params.stderr
parent5d2e6582b1273c9656b2a32a5728dcac6bb72000 (diff)
parentc1311073c0eab8a9f0566dbe0753f80865912a01 (diff)
downloadpin-project-839279b45646240b2dae0119f58d63c1a385e726.tar.gz
Upgrade rust/crates/pin-project to 1.0.5 am: c1311073c0
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/pin-project/+/1581962 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I5f4104ee1de259e93389f9f90dd3a88be5f817b3
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.stderr38
1 files changed, 20 insertions, 18 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
index 622d12f..f0f9573 100644
--- a/tests/ui/pin_project/project_replace_unsized_fn_params.stderr
+++ b/tests/ui/pin_project/project_replace_unsized_fn_params.stderr
@@ -11,14 +11,6 @@ error[E0277]: the size for values of type `T` cannot be known at compilation tim
= 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
@@ -26,11 +18,19 @@ 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 `Sized`
|
- = note: required because it appears within the type `__StructProjectionOwned<T>`
- = note: structs must have a statically known size to be initialized
+ = note: required because it appears within the type `Struct<T>`
+ = note: required by `UnsafeOverwriteGuard`
= 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: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:11:8
|
11 | struct TupleStruct<T: ?Sized>(T);
@@ -43,11 +43,13 @@ error[E0277]: the size for values of type `T` cannot be known at compilation tim
= 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)
+ --> $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: required because it appears within the type `TupleStruct<T>`
+ = note: required by `UnsafeOverwriteGuard`
+ = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)