2016-05-22 10:07:28 -05:00
|
|
|
pub extern { //~ ERROR unnecessary visibility qualifier
|
2013-08-07 02:11:34 -05:00
|
|
|
pub fn bar();
|
|
|
|
}
|
|
|
|
|
|
|
|
trait A {
|
2015-02-12 09:29:52 -06:00
|
|
|
fn foo(&self) {}
|
2013-08-07 02:11:34 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
struct B;
|
|
|
|
|
2016-05-22 10:07:28 -05:00
|
|
|
pub impl B {} //~ ERROR unnecessary visibility qualifier
|
2013-08-07 02:11:34 -05:00
|
|
|
|
2016-05-22 10:07:28 -05:00
|
|
|
pub impl A for B { //~ ERROR unnecessary visibility qualifier
|
|
|
|
pub fn foo(&self) {} //~ ERROR unnecessary visibility qualifier
|
2013-08-07 02:11:34 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
pub fn main() {}
|