rust/tests/ui/proc-macro/issue-50493.rs
Lukas Wirth eae7fe1bdb Use non-2015 edition paths in tests that do not test for their resolution
This allows for testing these tests on editions other than 2015
2025-06-03 13:35:31 +02:00

14 lines
255 B
Rust

//@ 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() {}