2015-01-08 10:54:35 +00:00
|
|
|
struct A { pub i: isize }
|
2013-08-09 08:25:24 +00:00
|
|
|
|
|
|
|
pub trait E {
|
2015-03-10 10:28:44 +00:00
|
|
|
fn foo(&self);
|
2013-08-09 08:25:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
impl E for A {
|
2023-04-04 03:28:55 +00:00
|
|
|
pub fn foo(&self) {} //~ ERROR: visibility qualifiers are not permitted here
|
2013-08-09 08:25:24 +00:00
|
|
|
}
|
|
|
|
|
2016-03-03 23:31:44 +00:00
|
|
|
enum Foo {
|
2023-04-04 03:28:55 +00:00
|
|
|
V1 { pub f: i32 }, //~ ERROR visibility qualifiers are not permitted here
|
|
|
|
V2(pub i32), //~ ERROR visibility qualifiers are not permitted here
|
2016-03-03 23:31:44 +00:00
|
|
|
}
|
|
|
|
|
2013-08-09 08:25:24 +00:00
|
|
|
fn main() {}
|