Sign in
rust
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
modules
/
module-super-access.rs
blob: 8acba607f6c06b794a97b6cc32cca59a5e2c6a5a [
file
] [
log
] [
blame
]
//! 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
()
{}