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