aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/pinned_drop/self.stderr
blob: 3ba333b4e8befda97b526d0bf8f35574f3649a12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
error: `self` parameter is only allowed in associated functions
  --> $DIR/self.rs:17:26
   |
17 |                     fn f(self: ()) {
   |                          ^^^^ not semantically valid as function parameter
...
23 |             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
   |
15 |                     let _ = self; //~ ERROR can't capture dynamic environment in a fn item
   |                             ^^^^
...
23 |             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)