summaryrefslogtreecommitdiffstats
path: root/src/test/ui/hygiene/globs.stderr
blob: 1f2a96a4c411a62bb1c016d41bf478da67cdf201 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
error[E0425]: cannot find function `f` in this scope
  --> $DIR/globs.rs:22:9
   |
LL |     pub fn g() {}
   |     ---------- similarly named function `g` defined here
...
LL |         f();
   |         ^
   |
help: a function with a similar name exists
   |
LL |         g();
   |         ~
help: consider importing this function
   |
LL | use foo::f;
   |

error[E0425]: cannot find function `g` in this scope
  --> $DIR/globs.rs:15:5
   |
LL |       pub fn f() {}
   |       ---------- similarly named function `f` defined here
...
LL |       g();
   |       ^
...
LL | /     m! {
LL | |         use bar::*;
LL | |         g();
LL | |         f();
LL | |     }
   | |_____- in this macro invocation
   |
   = note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
help: a function with a similar name exists
   |
LL |     f();
   |     ~
help: consider importing this function
   |
LL | use bar::g;
   |

error[E0425]: cannot find function `f` in this scope
  --> $DIR/globs.rs:61:12
   |
LL | n!(f);
   | ----- in this macro invocation
...
LL |         n!(f);
   |            ^ not found in this scope
   |
   = note: consider importing this function:
           foo::f
   = note: this error originates in the macro `n` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0425]: cannot find function `f` in this scope
  --> $DIR/globs.rs:65:17
   |
LL | n!(f);
   | ----- in this macro invocation
...
LL |                 f
   |                 ^ not found in this scope
   |
   = note: consider importing this function:
           foo::f
   = note: this error originates in the macro `n` (in Nightly builds, run with -Z macro-backtrace for more info)

error: aborting due to 4 previous errors

For more information about this error, try `rustc --explain E0425`.