]> git.proxmox.com Git - rustc.git/blob - src/test/ui/glob-resolve1.stderr
New upstream version 1.45.0+dfsg1
[rustc.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 error[E0412]: cannot find type `A` in this scope
47 --> $DIR/glob-resolve1.rs:28:11
48 |
49 LL | pub enum B { B1 }
50 | ---------- similarly named enum `B` defined here
51 ...
52 LL | foo::<A>();
53 | ^
54 |
55 help: an enum with a similar name exists
56 |
57 LL | foo::<B>();
58 | ^
59 help: consider importing this enum
60 |
61 LL | use bar::A;
62 |
63
64 error[E0412]: cannot find type `C` in this scope
65 --> $DIR/glob-resolve1.rs:29:11
66 |
67 LL | pub enum B { B1 }
68 | ---------- similarly named enum `B` defined here
69 ...
70 LL | foo::<C>();
71 | ^
72 |
73 help: an enum with a similar name exists
74 |
75 LL | foo::<B>();
76 | ^
77 help: consider importing this struct
78 |
79 LL | use bar::C;
80 |
81
82 error[E0412]: cannot find type `D` in this scope
83 --> $DIR/glob-resolve1.rs:30:11
84 |
85 LL | pub enum B { B1 }
86 | ---------- similarly named enum `B` defined here
87 ...
88 LL | foo::<D>();
89 | ^
90 |
91 help: an enum with a similar name exists
92 |
93 LL | foo::<B>();
94 | ^
95 help: consider importing this type alias
96 |
97 LL | use bar::D;
98 |
99
100 error: aborting due to 8 previous errors
101
102 Some errors have detailed explanations: E0412, E0423, E0425.
103 For more information about an error, try `rustc --explain E0412`.