Debian Codegraph @

third_party/rust/async-trait/tests/ui/self-span.stderr

raw
1 error[E0308]: mismatched types
2 --> tests/ui/self-span.rs:17:21
3 |
4 17 | let _: () = self;
5 | -- ^^^^ expected `()`, found `S`
6 | |
7 | expected due to this
8
9 error: the `Self` constructor can only be used with tuple or unit structs
10 --> tests/ui/self-span.rs:18:23
11 |
12 18 | let _: Self = Self;
13 | ^^^^ help: use curly brackets: `Self { /* fields */ }`
14
15 error[E0308]: mismatched types
16 --> tests/ui/self-span.rs:25:21
17 |
18 25 | let _: () = self;
19 | -- ^^^^ expected `()`, found `E`
20 | |
21 | expected due to this
22
23 error[E0533]: expected value, found struct variant `Self::V`
24 --> tests/ui/self-span.rs:26:23
25 |
26 26 | let _: Self = Self::V;
27 | ^^^^^^^ not a value