rust/tests/ui/privacy/restricted/auxiliary/pub_restricted.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
233 B
Rust
Raw Normal View History

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) {}
}