rust/tests/ui/modules/module-super-access.rs
Kivooeo 98934707eb cleaned up some tests
Additionally, remove unused `tests/ui/auxiliary/svh-*` crates that are duplicates of `tests/ui/svh/auxiliary/svh-*`.
2025-07-13 00:03:31 +05:00

17 lines
249 B
Rust

//! Check path resolution using `super`
//@ run-pass
#![allow(dead_code)]
pub mod a {
pub fn f() {}
pub mod b {
fn g() {
super::f(); // Accessing `f` from module `a` (parent of `b`)
}
}
}
pub fn main() {}