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