18 lines
430 B
Text
18 lines
430 B
Text
error[E0599]: no variant named `B` found for enum `S`
|
|
--> $DIR/enum-variant-not-found.rs:9:12
|
|
|
|
|
LL | enum S {
|
|
| ------ variant `B` not found here
|
|
...
|
|
LL | S::B {} => {},
|
|
| ^
|
|
|
|
|
help: there is a variant with a similar name
|
|
|
|
|
LL - S::B {} => {},
|
|
LL + S::A {} => {},
|
|
|
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0599`.
|