trait Foo { pub type Foo; //~^ ERROR unnecessary visibility qualifier } fn main() {}