aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/pinned_drop/self.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/pinned_drop/self.stderr')
-rw-r--r--tests/ui/pinned_drop/self.stderr38
1 files changed, 19 insertions, 19 deletions
diff --git a/tests/ui/pinned_drop/self.stderr b/tests/ui/pinned_drop/self.stderr
index 7de286f..edab117 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:18:26
+ --> $DIR/self.rs:17:26
|
-18 | fn f(self: ()) {} //~ ERROR `self` parameter is only allowed in associated functions
+17 | fn f(self: ()) {} //~ ERROR `self` parameter is only allowed in associated functions
| ^^^^ not semantically valid as function parameter
...
-21 | t!();
+20 | t!();
| ----- in this macro invocation
|
= note: associated functions are those in `impl` or `trait` definitions
- = note: this error originates in the macro `t` (in Nightly builds, run with -Z macro-backtrace for more info)
+ = 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:16:29
+ --> $DIR/self.rs:15:29
|
-16 | let _ = self; //~ ERROR E0434
+15 | let _ = self; //~ ERROR E0434
| ^^^^
...
-21 | t!();
+20 | t!();
| ----- in this macro invocation
|
= help: use the `|| { ... }` closure form instead
- = note: this error originates in the macro `t` (in Nightly builds, run with -Z macro-backtrace for more info)
+ = 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:40:27
+ --> $DIR/self.rs:38:27
|
-32 | / pub struct S {
-33 | | f: (),
-34 | | }
+30 | / pub struct S {
+31 | | f: (),
+32 | | }
| |_____- `S` defined here
...
-40 | let _: Self = Self; //~ ERROR E0423
+38 | let _: Self = Self; //~ ERROR E0423
| ^^^^ help: use struct literal syntax instead: `S { f: val }`
error[E0308]: mismatched types
- --> $DIR/self.rs:39:25
+ --> $DIR/self.rs:37:25
|
-39 | let _: () = self; //~ ERROR E0308
+37 | 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:52:25
+ --> $DIR/self.rs:50:25
|
-52 | let _: () = self; //~ ERROR E0308
+50 | 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:53:27
+ --> $DIR/self.rs:51:27
|
-53 | let _: Self = Self::V; //~ ERROR E0533
+51 | let _: Self = Self::V; //~ ERROR E0533
| ^^^^^^^