rust/tests/ui/privacy/restricted/private-in-public.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

13 lines
217 B
Rust

//@ check-pass
mod foo {
struct Priv;
mod bar {
use crate::foo::Priv;
pub(super) fn f(_: Priv) {}
pub(crate) fn g(_: Priv) {}
pub(crate) fn h(_: Priv) {}
}
}
fn main() { }