aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/pinned_drop/self.stderr
diff options
context:
space:
mode:
authorJoel Galenson <jgalenson@google.com>2021-05-27 15:42:45 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-05-27 15:42:45 +0000
commitb845c5fd84f50f28cd5cce350eac405562744e3b (patch)
treea2808291a9d00789d7f23e0e6bc9e133aace307a /tests/ui/pinned_drop/self.stderr
parent2985289ffb56db1a2cf157e4b6874d18496b2c35 (diff)
parentc95dc516440636acb2e9f0b61e3a4595a90c4d2e (diff)
downloadpin-project-b845c5fd84f50f28cd5cce350eac405562744e3b.tar.gz
Upgrade rust/crates/pin-project to 1.0.7 am: c95dc51644android-s-beta-4android-s-beta-3android-s-beta-4
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/pin-project/+/1713049 Change-Id: I83082aeac5db98559efa3c9c5ccf4df14e0ff691
Diffstat (limited to 'tests/ui/pinned_drop/self.stderr')
-rw-r--r--tests/ui/pinned_drop/self.stderr34
1 files changed, 17 insertions, 17 deletions
diff --git a/tests/ui/pinned_drop/self.stderr b/tests/ui/pinned_drop/self.stderr
index edab117..4ccbc41 100644
--- a/tests/ui/pinned_drop/self.stderr
+++ b/tests/ui/pinned_drop/self.stderr
@@ -1,42 +1,42 @@
error: `self` parameter is only allowed in associated functions
- --> $DIR/self.rs:17:26
+ --> $DIR/self.rs:18:26
|
-17 | fn f(self: ()) {} //~ ERROR `self` parameter is only allowed in associated functions
+18 | fn f(self: ()) {} //~ ERROR `self` parameter is only allowed in associated functions
| ^^^^ not semantically valid as function parameter
...
-20 | t!();
+21 | t!();
| ----- in this macro invocation
|
= note: associated functions are those in `impl` or `trait` definitions
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0434]: can't capture dynamic environment in a fn item
- --> $DIR/self.rs:15:29
+ --> $DIR/self.rs:16:29
|
-15 | let _ = self; //~ ERROR E0434
+16 | let _ = self; //~ ERROR E0434
| ^^^^
...
-20 | t!();
+21 | t!();
| ----- in this macro invocation
|
= help: use the `|| { ... }` closure form instead
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0423]: expected value, found struct `S`
- --> $DIR/self.rs:38:27
+ --> $DIR/self.rs:40:27
|
-30 | / pub struct S {
-31 | | f: (),
-32 | | }
+32 | / pub struct S {
+33 | | f: (),
+34 | | }
| |_____- `S` defined here
...
-38 | let _: Self = Self; //~ ERROR E0423
+40 | let _: Self = Self; //~ ERROR E0423
| ^^^^ help: use struct literal syntax instead: `S { f: val }`
error[E0308]: mismatched types
- --> $DIR/self.rs:37:25
+ --> $DIR/self.rs:39:25
|
-37 | let _: () = self; //~ ERROR E0308
+39 | let _: () = self; //~ ERROR E0308
| -- ^^^^ expected `()`, found struct `Pin`
| |
| expected due to this
@@ -45,9 +45,9 @@ error[E0308]: mismatched types
found struct `Pin<&mut self_span::S>`
error[E0308]: mismatched types
- --> $DIR/self.rs:50:25
+ --> $DIR/self.rs:52:25
|
-50 | let _: () = self; //~ ERROR E0308
+52 | let _: () = self; //~ ERROR E0308
| -- ^^^^ expected `()`, found struct `Pin`
| |
| expected due to this
@@ -56,7 +56,7 @@ error[E0308]: mismatched types
found struct `Pin<&mut E>`
error[E0533]: expected unit struct, unit variant or constant, found struct variant `Self::V`
- --> $DIR/self.rs:51:27
+ --> $DIR/self.rs:53:27
|
-51 | let _: Self = Self::V; //~ ERROR E0533
+53 | let _: Self = Self::V; //~ ERROR E0533
| ^^^^^^^