mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-10 07:33:53 +00:00
14 lines
239 B
Rust
14 lines
239 B
Rust
// aux-build:issue-50493.rs
|
|
|
|
#[macro_use]
|
|
extern crate issue_50493;
|
|
|
|
#[derive(Derive)]
|
|
struct Restricted {
|
|
pub(in restricted) field: usize, //~ visibilities can only be restricted to ancestor modules
|
|
}
|
|
|
|
mod restricted {}
|
|
|
|
fn main() {}
|