]> git.lizzy.rs Git - rust.git/blob - src/test/ui/glob-resolve1.stderr
Use `summary_opts()` in another spot
[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    |     ^
28    |
29 note: the enum is defined here
30   --> $DIR/glob-resolve1.rs:12:5
31    |
32 LL |     pub enum B { B1 }
33    |     ^^^^^^^^^^^^^^^^^
34 help: you might have meant to use the following enum variant
35    |
36 LL |     B::B1;
37    |     ^^^^^
38
39 error[E0425]: cannot find value `C` in this scope
40   --> $DIR/glob-resolve1.rs:25:5
41    |
42 LL |     C;
43    |     ^ not found in this scope
44    |
45 help: consider importing this unit struct
46    |
47 LL | use bar::C;
48    |
49
50 error[E0425]: cannot find function `import` in this scope
51   --> $DIR/glob-resolve1.rs:26:5
52    |
53 LL |     import();
54    |     ^^^^^^ not found in this scope
55    |
56 help: consider importing this function
57    |
58 LL | use other::import;
59    |
60
61 error[E0412]: cannot find type `A` in this scope
62   --> $DIR/glob-resolve1.rs:28:11
63    |
64 LL |     pub enum B { B1 }
65    |     ---------- similarly named enum `B` defined here
66 ...
67 LL |     foo::<A>();
68    |           ^
69    |
70 help: an enum with a similar name exists
71    |
72 LL |     foo::<B>();
73    |           ^
74 help: consider importing this enum
75    |
76 LL | use bar::A;
77    |
78
79 error[E0412]: cannot find type `C` in this scope
80   --> $DIR/glob-resolve1.rs:29:11
81    |
82 LL |     pub enum B { B1 }
83    |     ---------- similarly named enum `B` defined here
84 ...
85 LL |     foo::<C>();
86    |           ^
87    |
88 help: an enum with a similar name exists
89    |
90 LL |     foo::<B>();
91    |           ^
92 help: consider importing this struct
93    |
94 LL | use bar::C;
95    |
96
97 error[E0412]: cannot find type `D` in this scope
98   --> $DIR/glob-resolve1.rs:30:11
99    |
100 LL |     pub enum B { B1 }
101    |     ---------- similarly named enum `B` defined here
102 ...
103 LL |     foo::<D>();
104    |           ^
105    |
106 help: an enum with a similar name exists
107    |
108 LL |     foo::<B>();
109    |           ^
110 help: consider importing this type alias
111    |
112 LL | use bar::D;
113    |
114
115 error: aborting due to 8 previous errors
116
117 Some errors have detailed explanations: E0412, E0423, E0425.
118 For more information about an error, try `rustc --explain E0412`.