fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
2.5 KiB103 linesraw
1error[E0425]: cannot find function `fpriv` in this scope
2  --> $DIR/glob-resolve1.rs:22:5
3   |
4LL |     fpriv();
5   |     ^^^^^ not found in this scope
6   |
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
13  --> $DIR/glob-resolve1.rs:23:5
14   |
15LL |     epriv();
16   |     ^^^^^ not found in this scope
17   |
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`
24  --> $DIR/glob-resolve1.rs:24:5
25   |
26LL |     B;
27   |     ^ help: try using the enum's variant: `B::B1`
28
29error[E0425]: cannot find value `C` in this scope
30  --> $DIR/glob-resolve1.rs:25:5
31   |
32LL |     C;
33   |     ^ not found in this scope
34   |
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
41  --> $DIR/glob-resolve1.rs:26:5
42   |
43LL |     import();
44   |     ^^^^^^ not found in this scope
45
46error[E0412]: cannot find type `A` in this scope
47  --> $DIR/glob-resolve1.rs:28:11
48   |
49LL |     pub enum B { B1 }
50   |     ----------------- similarly named enum `B` defined here
51...
52LL |     foo::<A>();
53   |           ^
54   |
55help: an enum with a similar name exists
56   |
57LL |     foo::<B>();
58   |           ^
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
65  --> $DIR/glob-resolve1.rs:29:11
66   |
67LL |     pub enum B { B1 }
68   |     ----------------- similarly named enum `B` defined here
69...
70LL |     foo::<C>();
71   |           ^
72   |
73help: an enum with a similar name exists
74   |
75LL |     foo::<B>();
76   |           ^
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
83  --> $DIR/glob-resolve1.rs:30:11
84   |
85LL |     pub enum B { B1 }
86   |     ----------------- similarly named enum `B` defined here
87...
88LL |     foo::<D>();
89   |           ^
90   |
91help: an enum with a similar name exists
92   |
93LL |     foo::<B>();
94   |           ^
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
102Some errors have detailed explanations: E0412, E0423, E0425.
103For more information about an error, try `rustc --explain E0412`.