fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
2.2 KiB88 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
6help: possible candidate is found in another module, you can import it into scope
7   |
8LL | use bar::fpriv;
9   |
10
11error[E0425]: cannot find function `epriv` in this scope
12  --> $DIR/glob-resolve1.rs:23:5
13   |
14LL |     epriv();
15   |     ^^^^^ not found in this scope
16help: possible candidate is found in another module, you can import it into scope
17   |
18LL | use bar::epriv;
19   |
20
21error[E0423]: expected value, found enum `B`
22  --> $DIR/glob-resolve1.rs:24:5
23   |
24LL |     B;
25   |     ^ help: try using the enum's variant: `B::B1`
26
27error[E0425]: cannot find value `C` in this scope
28  --> $DIR/glob-resolve1.rs:25:5
29   |
30LL |     C;
31   |     ^ not found in this scope
32help: possible candidate is found in another module, you can import it into scope
33   |
34LL | use bar::C;
35   |
36
37error[E0425]: cannot find function `import` in this scope
38  --> $DIR/glob-resolve1.rs:26:5
39   |
40LL |     import();
41   |     ^^^^^^ not found in this scope
42
43error[E0412]: cannot find type `A` in this scope
44  --> $DIR/glob-resolve1.rs:28:11
45   |
46LL |     foo::<A>();
47   |           ^
48help: an enum with a similar name exists
49   |
50LL |     foo::<B>();
51   |           ^
52help: possible candidate is found in another module, you can import it into scope
53   |
54LL | use bar::A;
55   |
56
57error[E0412]: cannot find type `C` in this scope
58  --> $DIR/glob-resolve1.rs:29:11
59   |
60LL |     foo::<C>();
61   |           ^
62help: an enum with a similar name exists
63   |
64LL |     foo::<B>();
65   |           ^
66help: possible candidate is found in another module, you can import it into scope
67   |
68LL | use bar::C;
69   |
70
71error[E0412]: cannot find type `D` in this scope
72  --> $DIR/glob-resolve1.rs:30:11
73   |
74LL |     foo::<D>();
75   |           ^
76help: an enum with a similar name exists
77   |
78LL |     foo::<B>();
79   |           ^
80help: possible candidate is found in another module, you can import it into scope
81   |
82LL | use bar::D;
83   |
84
85error: aborting due to 8 previous errors
86
87Some errors have detailed explanations: E0412, E0423, E0425.
88For more information about an error, try `rustc --explain E0412`.