| #![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" } | |
| } |