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