]> git.lizzy.rs Git - rust.git/blob - src/test/ui/export2.rs
Auto merge of #86155 - alexcrichton:abort-on-unwind, r=nikomatsakis
[rust.git] / src / test / ui / export2.rs
1 mod foo {
2     pub fn x() { bar::x(); } //~ ERROR failed to resolve: use of undeclared crate 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(); }