]> git.lizzy.rs Git - rust.git/blob - src/test/ui/export.rs
Rollup merge of #57107 - mjbshaw:thread_local_test, r=nikomatsakis
[rust.git] / src / test / ui / export.rs
1 mod foo {
2     pub fn x(y: isize) { log(debug, y); }
3     //~^ ERROR cannot find function `log` in this scope
4     //~| ERROR cannot find value `debug` in this scope
5     fn z(y: isize) { log(debug, y); }
6     //~^ ERROR cannot find function `log` in this scope
7     //~| ERROR cannot find value `debug` in this scope
8 }
9
10 fn main() { foo::z(10); } //~ ERROR function `z` is private