mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
18 lines
382 B
Rust
18 lines
382 B
Rust
pub extern "C" { //~ ERROR visibility qualifiers are not permitted here
|
|
pub fn bar();
|
|
}
|
|
|
|
trait A {
|
|
fn foo(&self) {}
|
|
}
|
|
|
|
struct B;
|
|
|
|
pub impl B {} //~ ERROR visibility qualifiers are not permitted here
|
|
|
|
pub impl A for B { //~ ERROR visibility qualifiers are not permitted here
|
|
pub fn foo(&self) {} //~ ERROR visibility qualifiers are not permitted here
|
|
}
|
|
|
|
pub fn main() {}
|