]> git.proxmox.com Git - rustc.git/blobdiff - tests/ui/issues/issue-28433.stderr
Merge 1.70 into proxmox/bookworm
[rustc.git] / tests / ui / issues / issue-28433.stderr
index 9f5f6333602f5889f6a3765edd10cb1a8914f0ed..5fb8a89621c2d530cae324389e074e280db0192c 100644 (file)
@@ -1,14 +1,18 @@
-error[E0449]: unnecessary visibility qualifier
+error[E0449]: visibility qualifiers are not permitted here
   --> $DIR/issue-28433.rs:2:5
    |
 LL |     pub Duck,
-   |     ^^^ `pub` not permitted here because it's implied
+   |     ^^^
+   |
+   = note: enum variants and their fields always share the visibility of the enum they are in
 
-error[E0449]: unnecessary visibility qualifier
+error[E0449]: visibility qualifiers are not permitted here
   --> $DIR/issue-28433.rs:5:5
    |
 LL |     pub(crate) Dove
    |     ^^^^^^^^^^
+   |
+   = note: enum variants and their fields always share the visibility of the enum they are in
 
 error: aborting due to 2 previous errors