@@ -2,19 +2,34 @@ error[E0423]: expected value, found module `a`
22 --> $DIR/suggest-path-instead-of-mod-dot-item.rs:17:5
33 |
44LL | a.I
5- | ^- help: use the path separator to refer to an item: `::`
5+ | ^
6+ |
7+ help: use the path separator to refer to an item
8+ |
9+ LL | a::I
10+ | ~~
611
712error[E0423]: expected value, found module `a`
813 --> $DIR/suggest-path-instead-of-mod-dot-item.rs:23:5
914 |
1015LL | a.g()
11- | ^- help: use the path separator to refer to an item: `::`
16+ | ^
17+ |
18+ help: use the path separator to refer to an item
19+ |
20+ LL | a::g()
21+ | ~~
1222
1323error[E0423]: expected value, found module `a`
1424 --> $DIR/suggest-path-instead-of-mod-dot-item.rs:29:5
1525 |
1626LL | a.b.J
17- | ^- help: use the path separator to refer to an item: `::`
27+ | ^
28+ |
29+ help: use the path separator to refer to an item
30+ |
31+ LL | a::b.J
32+ | ~~
1833
1934error[E0423]: expected value, found module `a::b`
2035 --> $DIR/suggest-path-instead-of-mod-dot-item.rs:35:5
@@ -38,7 +53,12 @@ error[E0423]: expected value, found module `a`
3853 --> $DIR/suggest-path-instead-of-mod-dot-item.rs:42:5
3954 |
4055LL | a.b.f();
41- | ^- help: use the path separator to refer to an item: `::`
56+ | ^
57+ |
58+ help: use the path separator to refer to an item
59+ |
60+ LL | a::b.f();
61+ | ~~
4262
4363error[E0423]: expected value, found module `a::b`
4464 --> $DIR/suggest-path-instead-of-mod-dot-item.rs:46:12
@@ -117,23 +137,31 @@ error[E0423]: expected value, found module `a`
117137 --> $DIR/suggest-path-instead-of-mod-dot-item.rs:80:9
118138 |
119139LL | a.f()
120- | ^- help: use the path separator to refer to an item: `::`
140+ | ^
121141...
122142LL | let _ = create!(method);
123143 | --------------- in this macro invocation
124144 |
125145 = note: this error originates in the macro `create` (in Nightly builds, run with -Z macro-backtrace for more info)
146+ help: use the path separator to refer to an item
147+ |
148+ LL | a::f()
149+ | ~~
126150
127151error[E0423]: expected value, found module `a`
128152 --> $DIR/suggest-path-instead-of-mod-dot-item.rs:85:9
129153 |
130154LL | a.f
131- | ^- help: use the path separator to refer to an item: `::`
155+ | ^
132156...
133157LL | let _ = create!(field);
134158 | -------------- in this macro invocation
135159 |
136160 = note: this error originates in the macro `create` (in Nightly builds, run with -Z macro-backtrace for more info)
161+ help: use the path separator to refer to an item
162+ |
163+ LL | a::f
164+ | ~~
137165
138166error: aborting due to 13 previous errors
139167
0 commit comments