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