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