1 // aux-build:issue-50493.rs
4 extern crate issue_50493;
6 #[derive(Derive)] //~ ERROR field `field` of struct `Restricted` is private
7 //~| ERROR field `field` of struct `Restricted` is private
9 pub(in restricted) field: usize, //~ visibilities can only be restricted to ancestor modules