1 A visibility qualifier was used when it was unnecessary.
3 Erroneous code examples:
12 pub impl Bar {} // error: unnecessary visibility qualifier
14 pub impl Foo for Bar { // error: unnecessary visibility qualifier
15 pub fn foo() {} // error: unnecessary visibility qualifier
19 To fix this error, please remove the visibility qualifier when it is not
29 // Directly implemented methods share the visibility of the type itself,
30 // so `pub` is unnecessary here
33 // Trait methods share the visibility of the trait, so `pub` is
34 // unnecessary in either case