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.3 KiB59 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
6help: possible candidates are found in other modules, you can import them into scope
7   |
8LL | use foo::f;
9   |
10LL | use foo::f;
11   |
12LL | use foo::f;
13   |
14
15error[E0425]: cannot find function `g` in this scope
16  --> $DIR/globs.rs:15:5
17   |
18LL |       g();
19   |       ^ not found in this scope
20...
21LL | /     m! {
22LL | |         use bar::*;
23LL | |         g();
24LL | |         f();
25LL | |     }
26   | |_____- in this macro invocation
27help: possible candidates are found in other modules, you can import them into scope
28   |
29LL | use bar::g;
30   |
31LL | use foo::test2::test::g;
32   |
33LL | use foo::test2::test::g;
34   |
35LL | use foo::test::g;
36   |
37and 2 other candidates
38
39error[E0425]: cannot find function `f` in this scope
40  --> $DIR/globs.rs:61:12
41   |
42LL | n!(f);
43   | ------ in this macro invocation
44...
45LL |         n!(f);
46   |            ^ not found in this scope
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
57error: aborting due to 4 previous errors
58
59For more information about this error, try `rustc --explain E0425`.