]> git.lizzy.rs Git - rust.git/blob - src/test/ui/export2.rs
Auto merge of #62748 - luca-barbieri:optimize-refcell-borrow, r=RalfJung
[rust.git] / src / test / ui / export2.rs
1 mod foo {
2     pub fn x() { bar::x(); } //~ ERROR failed to resolve: use of undeclared type or module `bar`
3 }
4
5 mod bar {
6     fn x() { println!("x"); }
7
8     pub fn y() { }
9 }
10
11 fn main() { foo::x(); }