mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 06:22:00 +00:00
18 lines
334 B
Rust
18 lines
334 B
Rust
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() {}
|