2018-10-30 16:22:19 -05:00
|
|
|
//@ edition:2018
|
|
|
|
|
|
|
|
mod m {
|
|
|
|
pub(in crate) struct S1; // OK
|
|
|
|
pub(in super) struct S2; // OK
|
|
|
|
pub(in self) struct S3; // OK
|
|
|
|
pub(in ::core) struct S4;
|
|
|
|
//~^ ERROR visibilities can only be restricted to ancestor modules
|
|
|
|
pub(in a::b) struct S5;
|
2022-04-11 08:15:45 -05:00
|
|
|
//~^ ERROR relative paths are not supported in visibilities in 2018 edition or later
|
2018-10-30 16:22:19 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|