rust-clippy/tests/ui/pub_without_shorthand.stderr

24 lines
697 B
Text
Raw Normal View History

error: usage of `pub` with `in`
2024-02-17 12:16:29 +00:00
--> tests/ui/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`
= help: to override `-D warnings` add `#[allow(clippy::pub_without_shorthand)]`
error: usage of `pub` with `in`
2024-02-17 12:16:29 +00:00
--> tests/ui/pub_without_shorthand.rs:18:5
|
LL | pub(in super) fn d() {}
| ^^^^^^^^^^^^^ help: remove it: `pub(super)`
error: usage of `pub` with `in`
2024-02-17 12:16:29 +00:00
--> tests/ui/pub_without_shorthand.rs:22:5
|
LL | pub(in crate) fn m() {}
| ^^^^^^^^^^^^^ help: remove it: `pub(crate)`
error: aborting due to 3 previous errors