summary refs log tree commit diff
path: root/src/test/ui/proc-macro/issue-50493.rs
blob: 5d1a9f25baffd954e3982f38dd2ec5810598461b (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)] //~ 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() {}