fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.8 KiB73 linesraw
1error[E0425]: cannot find function `f` in this scope
2  --> $DIR/globs.rs:22:9
3   |
4LL |     pub fn g() {}
5   |     ---------- similarly named function `g` defined here
6...
7LL |         f();
8   |         ^
9   |
10help: a function with a similar name exists
11   |
12LL |         g();
13   |         ~
14help: consider importing this function
15   |
16LL + use foo::f;
17   |
18
19error[E0425]: cannot find function `g` in this scope
20  --> $DIR/globs.rs:15:5
21   |
22LL |       pub fn f() {}
23   |       ---------- similarly named function `f` defined here
24...
25LL |       g();
26   |       ^
27...
28LL | /     m! {
29LL | |         use bar::*;
30LL | |         g();
31LL | |         f();
32LL | |     }
33   | |_____- in this macro invocation
34   |
35   = note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
36help: a function with a similar name exists
37   |
38LL |     f();
39   |     ~
40help: consider importing this function
41   |
42LL + use bar::g;
43   |
44
45error[E0425]: cannot find function `f` in this scope
46  --> $DIR/globs.rs:61:12
47   |
48LL | n!(f);
49   | ----- in this macro invocation
50...
51LL |         n!(f);
52   |            ^ not found in this scope
53   |
54   = help: consider importing this function:
55           foo::f
56   = note: this error originates in the macro `n` (in Nightly builds, run with -Z macro-backtrace for more info)
57
58error[E0425]: cannot find function `f` in this scope
59  --> $DIR/globs.rs:65:17
60   |
61LL | n!(f);
62   | ----- in this macro invocation
63...
64LL |                 f
65   |                 ^ not found in this scope
66   |
67   = help: consider importing this function:
68           foo::f
69   = note: this error originates in the macro `n` (in Nightly builds, run with -Z macro-backtrace for more info)
70
71error: aborting due to 4 previous errors
72
73For more information about this error, try `rustc --explain E0425`.