mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-21 02:23:19 +00:00
23 lines
602 B
Text
23 lines
602 B
Text
|
error: usage of `pub` with `in`
|
||
|
--> $DIR/pub_without_shorthand.rs:14:1
|
||
|
|
|
||
|
LL | pub(in self) fn b() {}
|
||
|
| ^^^^^^^^^^^^ help: remove it: `pub(self)`
|
||
|
|
|
||
|
= note: `-D clippy::pub-without-shorthand` implied by `-D warnings`
|
||
|
|
||
|
error: usage of `pub` with `in`
|
||
|
--> $DIR/pub_without_shorthand.rs:18:5
|
||
|
|
|
||
|
LL | pub(in super) fn d() {}
|
||
|
| ^^^^^^^^^^^^^ help: remove it: `pub(super)`
|
||
|
|
||
|
error: usage of `pub` with `in`
|
||
|
--> $DIR/pub_without_shorthand.rs:22:5
|
||
|
|
|
||
|
LL | pub(in crate) fn m() {}
|
||
|
| ^^^^^^^^^^^^^ help: remove it: `pub(crate)`
|
||
|
|
||
|
error: aborting due to 3 previous errors
|
||
|
|