blob: 80372cc1ec4f8ffbe4accefa20d54b5c5dfdec56 [file]
#![feature(no_core)]
#![no_core]
mod bar {
pub mod foo {}
pub fn foo() {}
}
// This only imports the module `foo`. The function `foo` lives in
// the value namespace and is not imported.
use bar::foo::{self};
fn main() {
foo(); // { dg-error "expected value" }
}