summary refs log tree commit diff
path: root/src/test/ui/proc-macro/issue-50493.rs
blob: f1934f62fd88afcce777b09b67021168de6acc5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// aux-build:issue-50493.rs

#[macro_use]
extern crate issue_50493;

#[derive(Derive)] //~ ERROR field `field` of struct `Restricted` is private
                  //~| ERROR field `field` of struct `Restricted` is private
struct Restricted {
    pub(in restricted) field: usize, //~ visibilities can only be restricted to ancestor modules
}

mod restricted {}

fn main() {}