@@ -4,7 +4,7 @@ warning: visibility qualifiers have no effect on `const _` declarations
44LL | pub const _: () = {};
55 | ^^^ help: remove the qualifier
66 |
7- = note: there is no declared name for the qualifier to affect
7+ = note: `const _` does not declare a name, so there is nothing for the qualifier to apply to
88note: the lint level is defined here
99 --> $DIR/unused-visibilities.rs:4:9
1010 |
@@ -17,7 +17,7 @@ warning: visibility qualifiers have no effect on `const _` declarations
1717LL | pub(self) const _: () = {};
1818 | ^^^^^^^^^ help: remove the qualifier
1919 |
20- = note: there is no declared name for the qualifier to affect
20+ = note: `const _` does not declare a name, so there is nothing for the qualifier to apply to
2121
2222warning: visibility qualifiers have no effect on `const _` declarations
2323 --> $DIR/unused-visibilities.rs:14:9
@@ -28,7 +28,7 @@ LL | pub const _: () = {};
2828LL | foo!();
2929 | ------ in this macro invocation
3030 |
31- = note: there is no declared name for the qualifier to affect
31+ = note: `const _` does not declare a name, so there is nothing for the qualifier to apply to
3232 = note: this warning originates in the macro `foo` (in Nightly builds, run with -Z macro-backtrace for more info)
3333
3434warning: 3 warnings emitted
0 commit comments