fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
1.0 KiB34 linesraw
1error[E0425]: cannot find function `log` in this scope
2  --> $DIR/export.rs:2:26
3   |
4LL |     pub fn x(y: isize) { log(debug, y); }
5   |                          ^^^ not found in this scope
6
7error[E0425]: cannot find value `debug` in this scope
8  --> $DIR/export.rs:2:30
9   |
10LL |     pub fn x(y: isize) { log(debug, y); }
11   |                              ^^^^^ not found in this scope
12
13error[E0425]: cannot find function `log` in this scope
14  --> $DIR/export.rs:5:22
15   |
16LL |     fn z(y: isize) { log(debug, y); }
17   |                      ^^^ not found in this scope
18
19error[E0425]: cannot find value `debug` in this scope
20  --> $DIR/export.rs:5:26
21   |
22LL |     fn z(y: isize) { log(debug, y); }
23   |                          ^^^^^ not found in this scope
24
25error[E0603]: function `z` is private
26  --> $DIR/export.rs:10:18
27   |
28LL | fn main() { foo::z(10); }
29   |                  ^
30
31error: aborting due to 5 previous errors
32
33Some errors have detailed explanations: E0425, E0603.
34For more information about an error, try `rustc --explain E0425`.