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