mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 18:27:37 +00:00

Additionally, remove unused `tests/ui/auxiliary/svh-*` crates that are duplicates of `tests/ui/svh/auxiliary/svh-*`.
17 lines
249 B
Rust
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() {}
|