]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-38293.rs
Pass cflags rather than cxxflags to LLVM as CMAKE_C_FLAGS
[rust.git] / src / test / ui / issues / issue-38293.rs
1 // Test that `fn foo::bar::{self}` only imports `bar` in the type namespace.
2
3 mod foo {
4     pub fn f() { }
5 }
6 use foo::f::{self}; //~ ERROR unresolved import `foo::f`
7
8 mod bar {
9     pub fn baz() {}
10     pub mod baz {}
11 }
12 use bar::baz::{self};
13
14 fn main() {
15     baz(); //~ ERROR expected function, found module `baz`
16 }