blob: 5e4d4116f259fc85bf231d4bbc074376d4609720 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
error: expected identifier, found keyword `Self`
--> $DIR/doc-before-bad-variant.rs:4:5
|
LL | enum TestEnum {
| -------- while parsing this enum
...
LL | Self,
| ^^^^ expected identifier, found keyword
|
= help: enum variants can be `Variant`, `Variant = <integer>`, `Variant(Type, ..., TypeN)` or `Variant { fields: Types }`
error: aborting due to 1 previous error
|