2020-01-09 10:56:38 +00:00
|
|
|
#![feature(negative_impls)]
|
2015-11-09 18:15:53 +00:00
|
|
|
|
|
|
|
pub trait Tr {
|
|
|
|
fn f();
|
|
|
|
const C: u8;
|
|
|
|
type T;
|
|
|
|
}
|
|
|
|
pub struct S {
|
|
|
|
pub a: u8
|
|
|
|
}
|
|
|
|
struct Ts(pub u8);
|
|
|
|
|
2023-04-04 03:28:55 +00:00
|
|
|
pub impl Tr for S { //~ ERROR visibility qualifiers are not permitted here
|
|
|
|
pub fn f() {} //~ ERROR visibility qualifiers are not permitted here
|
|
|
|
pub const C: u8 = 0; //~ ERROR visibility qualifiers are not permitted here
|
|
|
|
pub type T = u8; //~ ERROR visibility qualifiers are not permitted here
|
2015-11-09 18:15:53 +00:00
|
|
|
}
|
2023-04-04 03:28:55 +00:00
|
|
|
pub impl S { //~ ERROR visibility qualifiers are not permitted here
|
2015-11-09 18:15:53 +00:00
|
|
|
pub fn f() {}
|
|
|
|
pub const C: u8 = 0;
|
|
|
|
// pub type T = u8;
|
|
|
|
}
|
2023-04-04 03:28:55 +00:00
|
|
|
pub extern "C" { //~ ERROR visibility qualifiers are not permitted here
|
2015-11-09 18:15:53 +00:00
|
|
|
pub fn f();
|
|
|
|
pub static St: u8;
|
|
|
|
}
|
|
|
|
|
|
|
|
const MAIN: u8 = {
|
2016-02-26 18:20:56 +00:00
|
|
|
pub trait Tr {
|
2015-11-09 18:15:53 +00:00
|
|
|
fn f();
|
|
|
|
const C: u8;
|
|
|
|
type T;
|
|
|
|
}
|
2016-02-26 18:20:56 +00:00
|
|
|
pub struct S {
|
|
|
|
pub a: u8
|
2015-11-09 18:15:53 +00:00
|
|
|
}
|
2016-02-26 18:20:56 +00:00
|
|
|
struct Ts(pub u8);
|
2015-11-09 18:15:53 +00:00
|
|
|
|
2023-04-04 03:28:55 +00:00
|
|
|
pub impl Tr for S { //~ ERROR visibility qualifiers are not permitted here
|
|
|
|
pub fn f() {} //~ ERROR visibility qualifiers are not permitted here
|
|
|
|
pub const C: u8 = 0; //~ ERROR visibility qualifiers are not permitted here
|
|
|
|
pub type T = u8; //~ ERROR visibility qualifiers are not permitted here
|
2015-11-09 18:15:53 +00:00
|
|
|
}
|
2023-04-04 03:28:55 +00:00
|
|
|
pub impl S { //~ ERROR visibility qualifiers are not permitted here
|
2016-02-26 18:20:56 +00:00
|
|
|
pub fn f() {}
|
|
|
|
pub const C: u8 = 0;
|
|
|
|
// pub type T = u8;
|
2015-11-09 18:15:53 +00:00
|
|
|
}
|
2023-04-04 03:28:55 +00:00
|
|
|
pub extern "C" { //~ ERROR visibility qualifiers are not permitted here
|
2016-02-26 18:20:56 +00:00
|
|
|
pub fn f();
|
|
|
|
pub static St: u8;
|
2015-11-09 18:15:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
0
|
|
|
|
};
|
|
|
|
|
|
|
|
fn main() {
|
2016-02-26 18:20:56 +00:00
|
|
|
pub trait Tr {
|
2015-11-09 18:15:53 +00:00
|
|
|
fn f();
|
|
|
|
const C: u8;
|
|
|
|
type T;
|
|
|
|
}
|
2016-02-26 18:20:56 +00:00
|
|
|
pub struct S {
|
|
|
|
pub a: u8
|
2015-11-09 18:15:53 +00:00
|
|
|
}
|
2016-02-26 18:20:56 +00:00
|
|
|
struct Ts(pub u8);
|
2015-11-09 18:15:53 +00:00
|
|
|
|
2023-04-04 03:28:55 +00:00
|
|
|
pub impl Tr for S { //~ ERROR visibility qualifiers are not permitted here
|
|
|
|
pub fn f() {} //~ ERROR visibility qualifiers are not permitted here
|
|
|
|
pub const C: u8 = 0; //~ ERROR visibility qualifiers are not permitted here
|
|
|
|
pub type T = u8; //~ ERROR visibility qualifiers are not permitted here
|
2015-11-09 18:15:53 +00:00
|
|
|
}
|
2023-04-04 03:28:55 +00:00
|
|
|
pub impl S { //~ ERROR visibility qualifiers are not permitted here
|
2016-02-26 18:20:56 +00:00
|
|
|
pub fn f() {}
|
|
|
|
pub const C: u8 = 0;
|
|
|
|
// pub type T = u8;
|
2015-11-09 18:15:53 +00:00
|
|
|
}
|
2023-04-04 03:28:55 +00:00
|
|
|
pub extern "C" { //~ ERROR visibility qualifiers are not permitted here
|
2016-02-26 18:20:56 +00:00
|
|
|
pub fn f();
|
|
|
|
pub static St: u8;
|
2015-11-09 18:15:53 +00:00
|
|
|
}
|
|
|
|
}
|