blob: 6db4cf79d6b32b97c5b0e0e8c5c6bef8c6e66b49 [file] [log] [blame] [edit]
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`.