]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/issues/issue-23217.stderr
improve unknown enum variant errors
[rust.git] / src / test / ui / issues / issue-23217.stderr
index 9cad002036fff4cc8b6f9fc1de814fab0e0b6df2..97100ed375374b70c5bbdec22d18c6366291aa92 100644 (file)
@@ -1,13 +1,13 @@
-error[E0599]: no variant named `A` found for type `SomeEnum` in the current scope
+error[E0599]: no variant or associated item named `A` found for type `SomeEnum` in the current scope
   --> $DIR/issue-23217.rs:2:19
    |
 LL | pub enum SomeEnum {
-   | ----------------- variant `A` not found here
+   | ----------------- variant or associated item `A` not found here
 LL |     B = SomeEnum::A,
-   |         ----------^
-   |         |         |
-   |         |         help: did you mean: `B`
-   |         variant not found in `SomeEnum`
+   |                   ^
+   |                   |
+   |                   variant or associated item not found in `SomeEnum`
+   |                   help: there is a variant with a similar name: `B`
 
 error: aborting due to previous error