fork/rust

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

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
2.7 KiB104 linesraw
1error[E0423]: expected value, found module `a`
2  --> $DIR/suggest-path-instead-of-mod-dot-item.rs:17:5
3   |
4LL |     a.I
5   |     ^--
6   |     |
7   |     help: use the path separator to refer to an item: `a::I`
8
9error[E0423]: expected value, found module `a`
10  --> $DIR/suggest-path-instead-of-mod-dot-item.rs:22:5
11   |
12LL |     a.g()
13   |     ^--
14   |     |
15   |     help: use the path separator to refer to an item: `a::g`
16
17error[E0423]: expected value, found module `a`
18  --> $DIR/suggest-path-instead-of-mod-dot-item.rs:27:5
19   |
20LL |     a.b.J
21   |     ^--
22   |     |
23   |     help: use the path separator to refer to an item: `a::b`
24
25error[E0423]: expected value, found module `a::b`
26  --> $DIR/suggest-path-instead-of-mod-dot-item.rs:32:5
27   |
28LL |     pub const I: i32 = 1;
29   |     --------------------- similarly named constant `I` defined here
30...
31LL |     a::b.J
32   |     ^^^^
33   |
34help: a constant with a similar name exists
35   |
36LL |     a::I.J
37   |        ^
38help: use the path separator to refer to an item
39   |
40LL |     a::b::J
41   |
42
43error[E0423]: expected value, found module `a`
44  --> $DIR/suggest-path-instead-of-mod-dot-item.rs:37:5
45   |
46LL |     a.b.f();
47   |     ^--
48   |     |
49   |     help: use the path separator to refer to an item: `a::b`
50
51error[E0423]: expected value, found module `a::b`
52  --> $DIR/suggest-path-instead-of-mod-dot-item.rs:40:12
53   |
54LL |     pub const I: i32 = 1;
55   |     --------------------- similarly named constant `I` defined here
56...
57LL |     v.push(a::b);
58   |            ^^^-
59   |               |
60   |               help: a constant with a similar name exists: `I`
61
62error[E0423]: expected value, found module `a::b`
63  --> $DIR/suggest-path-instead-of-mod-dot-item.rs:45:5
64   |
65LL |     pub const I: i32 = 1;
66   |     --------------------- similarly named constant `I` defined here
67...
68LL |     a::b.f()
69   |     ^^^^
70   |
71help: a constant with a similar name exists
72   |
73LL |     a::I.f()
74   |        ^
75help: use the path separator to refer to an item
76   |
77LL |     a::b::f()
78   |     ^^^^^^^
79
80error[E0423]: expected value, found module `a::b`
81  --> $DIR/suggest-path-instead-of-mod-dot-item.rs:50:5
82   |
83LL |     pub const I: i32 = 1;
84   |     --------------------- similarly named constant `I` defined here
85...
86LL |     a::b
87   |     ^^^-
88   |        |
89   |        help: a constant with a similar name exists: `I`
90
91error[E0423]: expected function, found module `a::b`
92  --> $DIR/suggest-path-instead-of-mod-dot-item.rs:55:5
93   |
94LL |     pub const I: i32 = 1;
95   |     --------------------- similarly named constant `I` defined here
96...
97LL |     a::b()
98   |     ^^^-
99   |        |
100   |        help: a constant with a similar name exists: `I`
101
102error: aborting due to 9 previous errors
103
104For more information about this error, try `rustc --explain E0423`.