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