rust/tests/ui/privacy/restricted/auxiliary/pub_restricted.rs
2023-01-11 09:32:08 +00:00

15 lines
233 B
Rust

pub(crate) struct Crate;
#[derive(Default)]
pub struct Universe {
pub x: i32,
pub(crate) y: i32,
pub(crate) z: i32,
}
impl Universe {
pub fn f(&self) {}
pub(crate) fn g(&self) {}
pub(crate) fn h(&self) {}
}