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