fork/rust

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

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
1.7 KiB63 linesraw
1error[E0425]: cannot find function `f` in this scope
2  --> $DIR/globs.rs:22:9
3   |
4LL |         f();
5   |         ^ not found in this scope
6   |
7help: possible candidate is found in another module, you can import it into scope
8   |
9LL | use foo::f;
10   |
11
12error[E0425]: cannot find function `g` in this scope
13  --> $DIR/globs.rs:15:5
14   |
15LL |       g();
16   |       ^ not found in this scope
17...
18LL | /     m! {
19LL | |         use bar::*;
20LL | |         g();
21LL | |         f();
22LL | |     }
23   | |_____- in this macro invocation
24   |
25   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
26help: possible candidates are found in other modules, you can import them into scope
27   |
28LL | use bar::g;
29   |
30LL | use foo::test2::test::g;
31   |
32LL | use foo::test::g;
33   |
34
35error[E0425]: cannot find function `f` in this scope
36  --> $DIR/globs.rs:61:12
37   |
38LL | n!(f);
39   | ------ in this macro invocation
40...
41LL |         n!(f);
42   |            ^ not found in this scope
43   |
44   = note: possible candidate is found in another module, you can import it into scope:
45           foo::f
46   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
47
48error[E0425]: cannot find function `f` in this scope
49  --> $DIR/globs.rs:65:17
50   |
51LL | n!(f);
52   | ------ in this macro invocation
53...
54LL |                 f
55   |                 ^ not found in this scope
56   |
57   = note: possible candidate is found in another module, you can import it into scope:
58           foo::f
59   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
60
61error: aborting due to 4 previous errors
62
63For more information about this error, try `rustc --explain E0425`.