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