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