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