]> git.lizzy.rs Git - rust.git/blob - tests/ui/resolve/suggest-path-instead-of-mod-dot-item.stderr
Rollup merge of #106692 - eggyal:mv-binary_heap.rs-binary_heap/mod.rs, r=Mark-Simulacrum
[rust.git] / tests / 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    |     ^- help: use the path separator to refer to an item: `::`
6
7 error[E0423]: expected value, found module `a`
8   --> $DIR/suggest-path-instead-of-mod-dot-item.rs:23:5
9    |
10 LL |     a.g()
11    |     ^- help: use the path separator to refer to an item: `::`
12
13 error[E0423]: expected value, found module `a`
14   --> $DIR/suggest-path-instead-of-mod-dot-item.rs:29:5
15    |
16 LL |     a.b.J
17    |     ^- help: use the path separator to refer to an item: `::`
18
19 error[E0423]: expected value, found module `a::b`
20   --> $DIR/suggest-path-instead-of-mod-dot-item.rs:35:5
21    |
22 LL |     pub const I: i32 = 1;
23    |     --------------------- similarly named constant `I` defined here
24 ...
25 LL |     a::b.J
26    |     ^^^^
27    |
28 help: use the path separator to refer to an item
29    |
30 LL |     a::b::J
31    |         ~~
32 help: a constant with a similar name exists
33    |
34 LL |     a::I.J
35    |        ~
36
37 error[E0423]: expected value, found module `a`
38   --> $DIR/suggest-path-instead-of-mod-dot-item.rs:42:5
39    |
40 LL |     a.b.f();
41    |     ^- help: use the path separator to refer to an item: `::`
42
43 error[E0423]: expected value, found module `a::b`
44   --> $DIR/suggest-path-instead-of-mod-dot-item.rs:46:12
45    |
46 LL |     pub const I: i32 = 1;
47    |     --------------------- similarly named constant `I` defined here
48 ...
49 LL |     v.push(a::b);
50    |            ^^^-
51    |               |
52    |               help: a constant with a similar name exists: `I`
53
54 error[E0423]: expected value, found module `a::b`
55   --> $DIR/suggest-path-instead-of-mod-dot-item.rs:52:5
56    |
57 LL |     pub const I: i32 = 1;
58    |     --------------------- similarly named constant `I` defined here
59 ...
60 LL |     a::b.f()
61    |     ^^^^
62    |
63 help: use the path separator to refer to an item
64    |
65 LL |     a::b::f()
66    |         ~~
67 help: a constant with a similar name exists
68    |
69 LL |     a::I.f()
70    |        ~
71
72 error[E0423]: expected value, found module `a::b`
73   --> $DIR/suggest-path-instead-of-mod-dot-item.rs:59:5
74    |
75 LL |     pub const I: i32 = 1;
76    |     --------------------- similarly named constant `I` defined here
77 ...
78 LL |     a::b
79    |     ^^^-
80    |        |
81    |        help: a constant with a similar name exists: `I`
82
83 error[E0423]: expected function, found module `a::b`
84   --> $DIR/suggest-path-instead-of-mod-dot-item.rs:65:5
85    |
86 LL |     pub const I: i32 = 1;
87    |     --------------------- similarly named constant `I` defined here
88 ...
89 LL |     a::b()
90    |     ^^^-
91    |        |
92    |        help: a constant with a similar name exists: `I`
93
94 error[E0423]: expected value, found module `a`
95   --> $DIR/suggest-path-instead-of-mod-dot-item.rs:72:9
96    |
97 LL |         a
98    |         ^ not a value
99 ...
100 LL |     module!().g::<()>(); // no `help` here!
101    |     --------- in this macro invocation
102    |
103    = note: this error originates in the macro `module` (in Nightly builds, run with -Z macro-backtrace for more info)
104
105 error[E0423]: expected value, found module `a`
106   --> $DIR/suggest-path-instead-of-mod-dot-item.rs:72:9
107    |
108 LL |         a
109    |         ^ not a value
110 ...
111 LL |     module!().g; // no `help` here!
112    |     --------- in this macro invocation
113    |
114    = note: this error originates in the macro `module` (in Nightly builds, run with -Z macro-backtrace for more info)
115
116 error[E0423]: expected value, found module `a`
117   --> $DIR/suggest-path-instead-of-mod-dot-item.rs:80:9
118    |
119 LL |         a.f()
120    |         ^- help: use the path separator to refer to an item: `::`
121 ...
122 LL |     let _ = create!(method);
123    |             --------------- in this macro invocation
124    |
125    = note: this error originates in the macro `create` (in Nightly builds, run with -Z macro-backtrace for more info)
126
127 error[E0423]: expected value, found module `a`
128   --> $DIR/suggest-path-instead-of-mod-dot-item.rs:85:9
129    |
130 LL |         a.f
131    |         ^- help: use the path separator to refer to an item: `::`
132 ...
133 LL |     let _ = create!(field);
134    |             -------------- in this macro invocation
135    |
136    = note: this error originates in the macro `create` (in Nightly builds, run with -Z macro-backtrace for more info)
137
138 error: aborting due to 13 previous errors
139
140 For more information about this error, try `rustc --explain E0423`.