]> git.proxmox.com Git - rustc.git/blob - src/test/ui/resolve/suggest-path-instead-of-mod-dot-item.stderr
New upstream version 1.56.0~beta.4+dfsg1
[rustc.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 | pub const I: i32 = 1;
29 | --------------------- similarly named constant `I` defined here
30 ...
31 LL | a::b.J
32 | ^^^^
33 |
34 help: use the path separator to refer to an item
35 |
36 LL | a::b::J
37 |
38 help: a constant with a similar name exists
39 |
40 LL | a::I.J
41 | ~
42
43 error[E0423]: expected value, found module `a`
44 --> $DIR/suggest-path-instead-of-mod-dot-item.rs:37:5
45 |
46 LL | a.b.f();
47 | ^--
48 | |
49 | help: use the path separator to refer to an item: `a::b`
50
51 error[E0423]: expected value, found module `a::b`
52 --> $DIR/suggest-path-instead-of-mod-dot-item.rs:40:12
53 |
54 LL | pub const I: i32 = 1;
55 | --------------------- similarly named constant `I` defined here
56 ...
57 LL | v.push(a::b);
58 | ^^^-
59 | |
60 | help: a constant with a similar name exists: `I`
61
62 error[E0423]: expected value, found module `a::b`
63 --> $DIR/suggest-path-instead-of-mod-dot-item.rs:45:5
64 |
65 LL | pub const I: i32 = 1;
66 | --------------------- similarly named constant `I` defined here
67 ...
68 LL | a::b.f()
69 | ^^^^
70 |
71 help: use the path separator to refer to an item
72 |
73 LL | a::b::f()
74 | ~~~~~~~
75 help: a constant with a similar name exists
76 |
77 LL | a::I.f()
78 | ~
79
80 error[E0423]: expected value, found module `a::b`
81 --> $DIR/suggest-path-instead-of-mod-dot-item.rs:50:5
82 |
83 LL | pub const I: i32 = 1;
84 | --------------------- similarly named constant `I` defined here
85 ...
86 LL | a::b
87 | ^^^-
88 | |
89 | help: a constant with a similar name exists: `I`
90
91 error[E0423]: expected function, found module `a::b`
92 --> $DIR/suggest-path-instead-of-mod-dot-item.rs:55:5
93 |
94 LL | pub const I: i32 = 1;
95 | --------------------- similarly named constant `I` defined here
96 ...
97 LL | a::b()
98 | ^^^-
99 | |
100 | help: a constant with a similar name exists: `I`
101
102 error: aborting due to 9 previous errors
103
104 For more information about this error, try `rustc --explain E0423`.