]> git.proxmox.com Git - rustc.git/blame - tests/ui/hygiene/globs.stderr
New upstream version 1.70.0+dfsg1
[rustc.git] / tests / ui / hygiene / globs.stderr
CommitLineData
83c7162d 1error[E0425]: cannot find function `f` in this scope
0731742a 2 --> $DIR/globs.rs:22:9
83c7162d 3 |
2b03887a
FG
4LL | pub fn g() {}
5 | ---------- similarly named function `g` defined here
6...
532ac7d7 7LL | f();
2b03887a
FG
8 | ^
9 |
10help: a function with a similar name exists
e74abb32 11 |
2b03887a
FG
12LL | g();
13 | ~
c295e0f8 14help: consider importing this function
83c7162d 15 |
353b0b11 16LL + use foo::f;
83c7162d
XL
17 |
18
19error[E0425]: cannot find function `g` in this scope
0731742a 20 --> $DIR/globs.rs:15:5
83c7162d 21 |
2b03887a
FG
22LL | pub fn f() {}
23 | ---------- similarly named function `f` defined here
24...
532ac7d7 25LL | g();
2b03887a 26 | ^
83c7162d
XL
27...
28LL | / m! {
29LL | | use bar::*;
30LL | | g();
532ac7d7 31LL | | f();
83c7162d
XL
32LL | | }
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
36help: a function with a similar name exists
37 |
38LL | f();
39 | ~
f035d41b 40help: consider importing this function
83c7162d 41 |
353b0b11 42LL + use bar::g;
83c7162d 43 |
8faf50e0
XL
44
45error[E0425]: cannot find function `f` in this scope
0731742a 46 --> $DIR/globs.rs:61:12
8faf50e0
XL
47 |
48LL | n!(f);
c295e0f8 49 | ----- in this macro invocation
8faf50e0 50...
532ac7d7 51LL | 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
58error[E0425]: cannot find function `f` in this scope
0731742a 59 --> $DIR/globs.rs:65:17
83c7162d
XL
60 |
61LL | n!(f);
c295e0f8 62 | ----- in this macro invocation
83c7162d 63...
532ac7d7 64LL | 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 71error: aborting due to 4 previous errors
83c7162d
XL
72
73For more information about this error, try `rustc --explain E0425`.