]> git.lizzy.rs Git - rust.git/blob - src/test/ui/resolve/suggest-path-instead-of-mod-dot-item.stderr
Rollup merge of #61207 - taiki-e:arbitrary_self_types-lifetime-elision-2, r=Centril
[rust.git] / src / test / ui / resolve / suggest-path-instead-of-mod-dot-item.stderr
1 error[E0423]: expected value, found module `a`
2   --> $DIR/suggest-path-instead-of-mod-dot-item.rs:17:5
3    |
4 LL |     a.I
5    |     ^--
6    |     |
7    |     help: use the path separator to refer to an item: `a::I`
8
9 error[E0423]: expected value, found module `a`
10   --> $DIR/suggest-path-instead-of-mod-dot-item.rs:22:5
11    |
12 LL |     a.g()
13    |     ^--
14    |     |
15    |     help: use the path separator to refer to an item: `a::g`
16
17 error[E0423]: expected value, found module `a`
18   --> $DIR/suggest-path-instead-of-mod-dot-item.rs:27:5
19    |
20 LL |     a.b.J
21    |     ^--
22    |     |
23    |     help: use the path separator to refer to an item: `a::b`
24
25 error[E0423]: expected value, found module `a::b`
26   --> $DIR/suggest-path-instead-of-mod-dot-item.rs:32:5
27    |
28 LL |     a::b.J
29    |     ^^^^
30 help: a constant with a similar name exists
31    |
32 LL |     a::I.J
33    |        ^
34 help: use the path separator to refer to an item
35    |
36 LL |     a::b::J
37    |
38
39 error[E0423]: expected value, found module `a`
40   --> $DIR/suggest-path-instead-of-mod-dot-item.rs:37:5
41    |
42 LL |     a.b.f();
43    |     ^--
44    |     |
45    |     help: use the path separator to refer to an item: `a::b`
46
47 error[E0423]: expected value, found module `a::b`
48   --> $DIR/suggest-path-instead-of-mod-dot-item.rs:40:12
49    |
50 LL |     v.push(a::b);
51    |            ^^^-
52    |               |
53    |               help: a constant with a similar name exists: `I`
54
55 error[E0423]: expected value, found module `a::b`
56   --> $DIR/suggest-path-instead-of-mod-dot-item.rs:45:5
57    |
58 LL |     a::b.f()
59    |     ^^^^
60 help: a constant with a similar name exists
61    |
62 LL |     a::I.f()
63    |        ^
64 help: use the path separator to refer to an item
65    |
66 LL |     a::b::f()
67    |     ^^^^^^^
68
69 error[E0423]: expected value, found module `a::b`
70   --> $DIR/suggest-path-instead-of-mod-dot-item.rs:50:5
71    |
72 LL |     a::b
73    |     ^^^-
74    |        |
75    |        help: a constant with a similar name exists: `I`
76
77 error[E0423]: expected function, found module `a::b`
78   --> $DIR/suggest-path-instead-of-mod-dot-item.rs:55:5
79    |
80 LL |     a::b()
81    |     ^^^-
82    |        |
83    |        help: a constant with a similar name exists: `I`
84
85 error: aborting due to 9 previous errors
86
87 For more information about this error, try `rustc --explain E0423`.