blob: 76af8c6cde801d4cc3bf7e266a38ef879fd201fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
pub extern "C" { //~ 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() {}
|