2023-07-02 07:35:19 -05:00
|
|
|
error: unnecessary `pub(self)`
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/needless_pub_self.rs:13:1
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | pub(self) fn a() {}
|
2024-08-08 12:13:50 -05:00
|
|
|
| ^^^^^^^^^
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
= note: `-D clippy::needless-pub-self` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::needless_pub_self)]`
|
2024-08-08 12:13:50 -05:00
|
|
|
= help: remove it
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
error: unnecessary `pub(in self)`
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/needless_pub_self.rs:14:1
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | pub(in self) fn b() {}
|
2024-08-08 12:13:50 -05:00
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: remove it
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
error: unnecessary `pub(self)`
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/needless_pub_self.rs:20:5
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | pub(self) fn f() {}
|
2024-08-08 12:13:50 -05:00
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: remove it
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|