mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-01 20:47:36 +00:00
14 lines
399 B
Plaintext
14 lines
399 B
Plaintext
![]() |
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
|
||
|
|