A visibility qualifier was used when it was unnecessary. Erroneous code
examples:
-```compile_fail
+```compile_fail,E0449
struct Bar;
trait Foo {
To fix this error, please remove the visibility qualifier when it is not
required. Example:
-```ignore
+```
struct Bar;
trait Foo {
// Trait methods share the visibility of the trait, so `pub` is
// unnecessary in either case
-pub impl Foo for Bar {
- pub fn foo() {}
+impl Foo for Bar {
+ fn foo() {}
}
```
"##,