add comment to closure-move-use-after-move-diagnostic.rs add comment to missing-operator-after-float.rs add comment to closure-array-break-length.rs add comment to box-lifetime-argument-not-allowed.rs add comment to const-return-outside-fn.rs add comment to drop-conflicting-impls.rs add comment to unbalanced-doublequote-2.rs add comment to borrow-immutable-deref-box.rs add comment to for-in-const-eval.rs add comment to borrowck-annotated-static-lifetime.rs cleaned up cast-rfc0401.rs add comment to nll-anon-to-static.rs add comment to cast-to-dyn-any.rs add comment to missing-associated-items.rs add comment to enum-discriminant-missing-variant.rs
17 lines
586 B
Text
17 lines
586 B
Text
error[E0599]: no variant or associated item named `A` found for enum `SomeEnum` in the current scope
|
|
--> $DIR/enum-discriminant-missing-variant.rs:3:19
|
|
|
|
|
LL | pub enum SomeEnum {
|
|
| ----------------- variant or associated item `A` not found for this enum
|
|
LL | B = SomeEnum::A,
|
|
| ^ variant or associated item not found in `SomeEnum`
|
|
|
|
|
help: there is a variant with a similar name
|
|
|
|
|
LL - B = SomeEnum::A,
|
|
LL + B = SomeEnum::B,
|
|
|
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0599`.
|