2023-04-04 03:28:55 +00:00
|
|
|
pub extern "C" { //~ ERROR visibility qualifiers are not permitted here
|
2013-08-07 07:11:34 +00:00
|
|
|
pub fn bar();
|
|
|
|
}
|
|
|
|
|
|
|
|
trait A {
|
2015-02-12 15:29:52 +00:00
|
|
|
fn foo(&self) {}
|
2013-08-07 07:11:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
struct B;
|
|
|
|
|
2023-04-04 03:28:55 +00:00
|
|
|
pub impl B {} //~ ERROR visibility qualifiers are not permitted here
|
2013-08-07 07:11:34 +00:00
|
|
|
|
2023-04-04 03:28:55 +00:00
|
|
|
pub impl A for B { //~ ERROR visibility qualifiers are not permitted here
|
|
|
|
pub fn foo(&self) {} //~ ERROR visibility qualifiers are not permitted here
|
2013-08-07 07:11:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
pub fn main() {}
|