summaryrefslogtreecommitdiffstats
path: root/tests/ui/proc-macro/issue-50493.rs
blob: ce0e0839f1d17787ca7c5ffe284c3120f796b973 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// 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() {}