rust/src/test/ui/priv-in-bad-locations.rs
2018-12-25 21:08:33 -07:00

18 lines
330 B
Rust

pub extern { //~ ERROR unnecessary visibility qualifier
pub fn bar();
}
trait A {
fn foo(&self) {}
}
struct B;
pub impl B {} //~ ERROR unnecessary visibility qualifier
pub impl A for B { //~ ERROR unnecessary visibility qualifier
pub fn foo(&self) {} //~ ERROR unnecessary visibility qualifier
}
pub fn main() {}