Debian Codegraph @

third_party/rust/pin-project/tests/ui/pinned_drop/self.stderr

raw
1 error: `self` parameter is only allowed in associated functions
2 --> tests/ui/pinned_drop/self.rs:18:26
3 |
4 18 | fn f(self: ()) {} //~ ERROR `self` parameter is only allowed in associated functions
5 | ^^^^ not semantically valid as function parameter
6 ...
7 21 | t!();
8 | ---- in this macro invocation
9 |
10 = note: associated functions are those in `impl` or `trait` definitions
11 = note: this error originates in the macro `t` (in Nightly builds, run with -Z macro-backtrace for more info)
12
13 error[E0434]: can't capture dynamic environment in a fn item
14 --> tests/ui/pinned_drop/self.rs:16:29
15 |
16 16 | let _ = self; //~ ERROR E0434
17 | ^^^^
18 ...
19 21 | t!();
20 | ---- in this macro invocation
21 |
22 = help: use the `|| { ... }` closure form instead
23 = note: this error originates in the macro `t` (in Nightly builds, run with -Z macro-backtrace for more info)
24
25 error[E0423]: expected value, found struct `S`
26 --> tests/ui/pinned_drop/self.rs:40:27
27 |
28 32 | / pub struct S {
29 33 | | f: (),
30 34 | | }
31 | |_____- `S` defined here
32 ...
33 40 | let _: Self = Self; //~ ERROR E0423
34 | ^^^^ help: use struct literal syntax instead: `S { f: val }`
35
36 error[E0308]: mismatched types
37 --> tests/ui/pinned_drop/self.rs:39:25
38 |
39 39 | let _: () = self; //~ ERROR E0308
40 | -- ^^^^ expected `()`, found `Pin<&mut S>`
41 | |
42 | expected due to this
43 |
44 = note: expected unit type `()`
45 found struct `Pin<&mut self_span::S>`
46
47 error[E0308]: mismatched types
48 --> tests/ui/pinned_drop/self.rs:52:25
49 |
50 52 | let _: () = self; //~ ERROR E0308
51 | -- ^^^^ expected `()`, found `Pin<&mut E>`
52 | |
53 | expected due to this
54 |
55 = note: expected unit type `()`
56 found struct `Pin<&mut E>`
57
58 error[E0533]: expected value, found struct variant `E::V`
59 --> tests/ui/pinned_drop/self.rs:53:27
60 |
61 53 | let _: Self = Self::V; //~ ERROR E0533
62 | ^^^^^^^ not a value