2023-07-02 07:35:19 -05:00
|
|
|
error: usage of `pub` without `in`
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/pub_with_shorthand.rs:13:1
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | pub(self) fn a() {}
|
|
|
|
| ^^^^^^^^^ help: add it: `pub(in self)`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::pub-with-shorthand` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::pub_with_shorthand)]`
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
error: usage of `pub` without `in`
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/pub_with_shorthand.rs:19:5
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | pub(super) fn e() {}
|
|
|
|
| ^^^^^^^^^^ help: add it: `pub(in super)`
|
|
|
|
|
|
|
|
error: usage of `pub` without `in`
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/pub_with_shorthand.rs:20:5
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | pub(self) fn f() {}
|
|
|
|
| ^^^^^^^^^ help: add it: `pub(in self)`
|
|
|
|
|
|
|
|
error: usage of `pub` without `in`
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/pub_with_shorthand.rs:21:5
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | pub(crate) fn k() {}
|
|
|
|
| ^^^^^^^^^^ help: add it: `pub(in crate)`
|
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|