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