about summary refs log tree commit diff
path: root/tests/ui/proc-macro/issue-50493.rs
blob: 2621e595baada0ba9145a5a2c579ddcb8bd2ae88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//@ proc-macro: issue-50493.rs

#[macro_use]
extern crate issue_50493;

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

mod restricted {}

fn main() {}