blob: fde7cd5d89d9acd242d6c612d650919ecdbf854c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
struct A { pub i: isize }
pub trait E {
fn foo(&self);
}
impl E for A {
pub fn foo(&self) {} //~ ERROR: unnecessary visibility qualifier
}
enum Foo {
V1 { pub f: i32 }, //~ ERROR unnecessary visibility qualifier
V2(pub i32), //~ ERROR unnecessary visibility qualifier
}
fn main() {}
|