summary refs log tree commit diff
path: root/src/test/ui/proc-macro/issue-50493.rs
blob: f504dbdfce24766d3b9349da8768eb81a5f5afb4 (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
struct Restricted {
    pub(in restricted) field: usize, //~ visibilities can only be restricted to ancestor modules
}

mod restricted {}

fn main() {}