]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0425]: cannot find function `fpriv` in this scope |
5869c6ff | 2 | --> $DIR/glob-resolve1.rs:26:5 |
b7449926 | 3 | | |
532ac7d7 | 4 | LL | fpriv(); |
b7449926 | 5 | | ^^^^^ not found in this scope |
e74abb32 | 6 | | |
f9f354fc | 7 | help: consider importing this function |
b7449926 XL |
8 | | |
9 | LL | use bar::fpriv; | |
10 | | | |
11 | ||
12 | error[E0425]: cannot find function `epriv` in this scope | |
5869c6ff | 13 | --> $DIR/glob-resolve1.rs:27:5 |
b7449926 | 14 | | |
532ac7d7 | 15 | LL | epriv(); |
b7449926 | 16 | | ^^^^^ not found in this scope |
e74abb32 | 17 | | |
f9f354fc | 18 | help: consider importing this function |
b7449926 XL |
19 | | |
20 | LL | use bar::epriv; | |
21 | | | |
22 | ||
23 | error[E0423]: expected value, found enum `B` | |
5869c6ff | 24 | --> $DIR/glob-resolve1.rs:28:5 |
b7449926 | 25 | | |
532ac7d7 | 26 | LL | B; |
29967ef6 XL |
27 | | ^ |
28 | | | |
29 | note: the enum is defined here | |
5869c6ff | 30 | --> $DIR/glob-resolve1.rs:14:5 |
29967ef6 | 31 | | |
5869c6ff XL |
32 | LL | / pub enum B { |
33 | LL | | B1, | |
34 | LL | | } | |
35 | | |_____^ | |
29967ef6 XL |
36 | help: you might have meant to use the following enum variant |
37 | | | |
38 | LL | B::B1; | |
39 | | ^^^^^ | |
b7449926 XL |
40 | |
41 | error[E0425]: cannot find value `C` in this scope | |
5869c6ff | 42 | --> $DIR/glob-resolve1.rs:29:5 |
b7449926 | 43 | | |
532ac7d7 | 44 | LL | C; |
b7449926 | 45 | | ^ not found in this scope |
e74abb32 | 46 | | |
f9f354fc | 47 | help: consider importing this unit struct |
b7449926 XL |
48 | | |
49 | LL | use bar::C; | |
50 | | | |
51 | ||
52 | error[E0425]: cannot find function `import` in this scope | |
5869c6ff | 53 | --> $DIR/glob-resolve1.rs:30:5 |
b7449926 | 54 | | |
532ac7d7 | 55 | LL | import(); |
b7449926 | 56 | | ^^^^^^ not found in this scope |
f035d41b XL |
57 | | |
58 | help: consider importing this function | |
59 | | | |
60 | LL | use other::import; | |
61 | | | |
b7449926 XL |
62 | |
63 | error[E0412]: cannot find type `A` in this scope | |
5869c6ff | 64 | --> $DIR/glob-resolve1.rs:32:11 |
b7449926 | 65 | | |
5869c6ff | 66 | LL | pub enum B { |
ba9703b0 | 67 | | ---------- similarly named enum `B` defined here |
e74abb32 | 68 | ... |
532ac7d7 | 69 | LL | foo::<A>(); |
0731742a | 70 | | ^ |
e74abb32 | 71 | | |
0731742a XL |
72 | help: an enum with a similar name exists |
73 | | | |
532ac7d7 | 74 | LL | foo::<B>(); |
0731742a | 75 | | ^ |
f9f354fc | 76 | help: consider importing this enum |
b7449926 XL |
77 | | |
78 | LL | use bar::A; | |
79 | | | |
80 | ||
81 | error[E0412]: cannot find type `C` in this scope | |
5869c6ff | 82 | --> $DIR/glob-resolve1.rs:33:11 |
b7449926 | 83 | | |
5869c6ff | 84 | LL | pub enum B { |
ba9703b0 | 85 | | ---------- similarly named enum `B` defined here |
e74abb32 | 86 | ... |
532ac7d7 | 87 | LL | foo::<C>(); |
0731742a | 88 | | ^ |
e74abb32 | 89 | | |
0731742a XL |
90 | help: an enum with a similar name exists |
91 | | | |
532ac7d7 | 92 | LL | foo::<B>(); |
0731742a | 93 | | ^ |
f9f354fc | 94 | help: consider importing this struct |
b7449926 XL |
95 | | |
96 | LL | use bar::C; | |
97 | | | |
98 | ||
99 | error[E0412]: cannot find type `D` in this scope | |
5869c6ff | 100 | --> $DIR/glob-resolve1.rs:34:11 |
b7449926 | 101 | | |
5869c6ff | 102 | LL | pub enum B { |
ba9703b0 | 103 | | ---------- similarly named enum `B` defined here |
e74abb32 | 104 | ... |
532ac7d7 | 105 | LL | foo::<D>(); |
0731742a | 106 | | ^ |
e74abb32 | 107 | | |
0731742a XL |
108 | help: an enum with a similar name exists |
109 | | | |
532ac7d7 | 110 | LL | foo::<B>(); |
0731742a | 111 | | ^ |
f9f354fc | 112 | help: consider importing this type alias |
b7449926 XL |
113 | | |
114 | LL | use bar::D; | |
115 | | | |
116 | ||
117 | error: aborting due to 8 previous errors | |
118 | ||
48663c56 | 119 | Some errors have detailed explanations: E0412, E0423, E0425. |
b7449926 | 120 | For more information about an error, try `rustc --explain E0412`. |