blob: fb1152874a192098cd35f7ffef94038472fee40c [file] [log] [blame]
Andrew Walbrand1b91c72020-08-11 17:12:08 +01001error[E0423]: expected value, found struct `S`
2 --> $DIR/self-span.rs:18:23
3 |
43 | pub struct S {}
5 | --------------- `S` defined here
6...
718 | let _: Self = Self;
Haibo Huangd8abf3d2020-08-17 15:39:53 -07008 | ^^^^ help: use struct literal syntax instead: `S {}`
Andrew Walbrand1b91c72020-08-11 17:12:08 +01009
10error[E0308]: mismatched types
11 --> $DIR/self-span.rs:17:21
12 |
1317 | let _: () = self;
14 | -- ^^^^ expected `()`, found struct `S`
15 | |
16 | expected due to this
17
18error[E0308]: mismatched types
19 --> $DIR/self-span.rs:25:21
20 |
2125 | let _: () = self;
22 | -- ^^^^ expected `()`, found enum `E`
23 | |
24 | expected due to this
25
26error[E0533]: expected unit struct, unit variant or constant, found struct variant `Self::V`
27 --> $DIR/self-span.rs:26:23
28 |
2926 | let _: Self = Self::V;
30 | ^^^^^^^