2016-11-30 16:35:25 -06:00
|
|
|
error[E0423]: expected value, found module `a`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/suggest-path-instead-of-mod-dot-item.rs:17:5
|
2016-11-30 16:35:25 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | a.I
|
2022-08-10 07:06:27 -05:00
|
|
|
| ^- help: use the path separator to refer to an item: `::`
|
2016-11-30 16:35:25 -06:00
|
|
|
|
2016-11-30 16:35:25 -06:00
|
|
|
error[E0423]: expected value, found module `a`
|
2022-08-10 07:06:27 -05:00
|
|
|
--> $DIR/suggest-path-instead-of-mod-dot-item.rs:23:5
|
2016-11-30 16:35:25 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | a.g()
|
2022-08-10 07:06:27 -05:00
|
|
|
| ^- help: use the path separator to refer to an item: `::`
|
2016-11-30 16:35:25 -06:00
|
|
|
|
2016-11-30 16:35:25 -06:00
|
|
|
error[E0423]: expected value, found module `a`
|
2022-08-10 07:06:27 -05:00
|
|
|
--> $DIR/suggest-path-instead-of-mod-dot-item.rs:29:5
|
2016-11-30 16:35:25 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | a.b.J
|
2022-08-10 07:06:27 -05:00
|
|
|
| ^- help: use the path separator to refer to an item: `::`
|
2016-11-30 16:35:25 -06:00
|
|
|
|
2016-11-30 16:35:25 -06:00
|
|
|
error[E0423]: expected value, found module `a::b`
|
2022-08-10 07:06:27 -05:00
|
|
|
--> $DIR/suggest-path-instead-of-mod-dot-item.rs:35:5
|
2016-11-30 16:35:25 -06:00
|
|
|
|
|
2019-10-14 19:20:50 -05:00
|
|
|
LL | pub const I: i32 = 1;
|
|
|
|
| --------------------- similarly named constant `I` defined here
|
|
|
|
...
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | a::b.J
|
2019-01-15 10:27:58 -06:00
|
|
|
| ^^^^
|
2019-10-24 00:20:58 -05:00
|
|
|
|
|
2019-01-15 10:27:58 -06:00
|
|
|
help: use the path separator to refer to an item
|
|
|
|
|
|
|
|
|
LL | a::b::J
|
2022-08-10 07:06:27 -05:00
|
|
|
| ~~
|
2020-08-09 22:29:39 -05:00
|
|
|
help: a constant with a similar name exists
|
|
|
|
|
|
|
|
|
LL | a::I.J
|
2021-06-21 21:07:19 -05:00
|
|
|
| ~
|
2016-11-30 16:35:25 -06:00
|
|
|
|
2016-11-30 16:35:25 -06:00
|
|
|
error[E0423]: expected value, found module `a`
|
2022-08-10 07:06:27 -05:00
|
|
|
--> $DIR/suggest-path-instead-of-mod-dot-item.rs:42:5
|
2016-11-30 16:35:25 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | a.b.f();
|
2022-08-10 07:06:27 -05:00
|
|
|
| ^- help: use the path separator to refer to an item: `::`
|
2016-11-30 16:35:25 -06:00
|
|
|
|
2016-11-30 16:35:25 -06:00
|
|
|
error[E0423]: expected value, found module `a::b`
|
2022-08-10 07:06:27 -05:00
|
|
|
--> $DIR/suggest-path-instead-of-mod-dot-item.rs:46:12
|
2016-11-30 16:35:25 -06:00
|
|
|
|
|
2019-10-14 19:20:50 -05:00
|
|
|
LL | pub const I: i32 = 1;
|
|
|
|
| --------------------- similarly named constant `I` defined here
|
|
|
|
...
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | v.push(a::b);
|
2017-03-08 13:15:12 -06:00
|
|
|
| ^^^-
|
|
|
|
| |
|
2019-01-09 13:11:00 -06:00
|
|
|
| help: a constant with a similar name exists: `I`
|
2016-11-30 16:35:25 -06:00
|
|
|
|
2016-11-30 16:35:25 -06:00
|
|
|
error[E0423]: expected value, found module `a::b`
|
2022-08-10 07:06:27 -05:00
|
|
|
--> $DIR/suggest-path-instead-of-mod-dot-item.rs:52:5
|
2016-11-30 16:35:25 -06:00
|
|
|
|
|
2019-10-14 19:20:50 -05:00
|
|
|
LL | pub const I: i32 = 1;
|
|
|
|
| --------------------- similarly named constant `I` defined here
|
|
|
|
...
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | a::b.f()
|
2019-01-15 10:27:58 -06:00
|
|
|
| ^^^^
|
2019-10-24 00:20:58 -05:00
|
|
|
|
|
2019-01-15 10:27:58 -06:00
|
|
|
help: use the path separator to refer to an item
|
|
|
|
|
|
|
|
|
LL | a::b::f()
|
2022-08-10 07:06:27 -05:00
|
|
|
| ~~
|
2020-08-09 22:29:39 -05:00
|
|
|
help: a constant with a similar name exists
|
|
|
|
|
|
|
|
|
LL | a::I.f()
|
2021-06-21 21:07:19 -05:00
|
|
|
| ~
|
2016-11-30 16:35:25 -06:00
|
|
|
|
2016-11-30 16:35:25 -06:00
|
|
|
error[E0423]: expected value, found module `a::b`
|
2022-08-10 07:06:27 -05:00
|
|
|
--> $DIR/suggest-path-instead-of-mod-dot-item.rs:59:5
|
2016-11-30 16:35:25 -06:00
|
|
|
|
|
2019-10-14 19:20:50 -05:00
|
|
|
LL | pub const I: i32 = 1;
|
|
|
|
| --------------------- similarly named constant `I` defined here
|
|
|
|
...
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | a::b
|
2017-03-08 13:15:12 -06:00
|
|
|
| ^^^-
|
|
|
|
| |
|
2019-01-09 13:11:00 -06:00
|
|
|
| help: a constant with a similar name exists: `I`
|
2016-11-30 16:35:25 -06:00
|
|
|
|
2016-11-30 16:35:25 -06:00
|
|
|
error[E0423]: expected function, found module `a::b`
|
2022-08-10 07:06:27 -05:00
|
|
|
--> $DIR/suggest-path-instead-of-mod-dot-item.rs:65:5
|
2016-11-30 16:35:25 -06:00
|
|
|
|
|
2019-10-14 19:20:50 -05:00
|
|
|
LL | pub const I: i32 = 1;
|
|
|
|
| --------------------- similarly named constant `I` defined here
|
|
|
|
...
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | a::b()
|
2017-03-08 13:15:12 -06:00
|
|
|
| ^^^-
|
|
|
|
| |
|
2019-01-09 13:11:00 -06:00
|
|
|
| help: a constant with a similar name exists: `I`
|
2016-11-30 16:35:25 -06:00
|
|
|
|
2022-08-10 07:06:27 -05:00
|
|
|
error[E0423]: expected value, found module `a`
|
|
|
|
--> $DIR/suggest-path-instead-of-mod-dot-item.rs:72:9
|
|
|
|
|
|
|
|
|
LL | a
|
|
|
|
| ^ not a value
|
|
|
|
...
|
|
|
|
LL | module!().g::<()>(); // no `help` here!
|
|
|
|
| --------- in this macro invocation
|
|
|
|
|
|
|
|
|
= note: this error originates in the macro `module` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
|
|
|
|
error[E0423]: expected value, found module `a`
|
|
|
|
--> $DIR/suggest-path-instead-of-mod-dot-item.rs:72:9
|
|
|
|
|
|
|
|
|
LL | a
|
|
|
|
| ^ not a value
|
|
|
|
...
|
|
|
|
LL | module!().g; // no `help` here!
|
|
|
|
| --------- in this macro invocation
|
|
|
|
|
|
|
|
|
= note: this error originates in the macro `module` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
|
|
|
|
error[E0423]: expected value, found module `a`
|
|
|
|
--> $DIR/suggest-path-instead-of-mod-dot-item.rs:80:9
|
|
|
|
|
|
|
|
|
LL | a.f()
|
|
|
|
| ^- help: use the path separator to refer to an item: `::`
|
|
|
|
...
|
|
|
|
LL | let _ = create!(method);
|
|
|
|
| --------------- in this macro invocation
|
|
|
|
|
|
|
|
|
= note: this error originates in the macro `create` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
|
|
|
|
error[E0423]: expected value, found module `a`
|
|
|
|
--> $DIR/suggest-path-instead-of-mod-dot-item.rs:85:9
|
|
|
|
|
|
|
|
|
LL | a.f
|
|
|
|
| ^- help: use the path separator to refer to an item: `::`
|
|
|
|
...
|
|
|
|
LL | let _ = create!(field);
|
|
|
|
| -------------- in this macro invocation
|
|
|
|
|
|
|
|
|
= note: this error originates in the macro `create` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
|
|
|
|
error: aborting due to 13 previous errors
|
2016-11-30 16:35:25 -06:00
|
|
|
|
2018-03-12 15:21:43 -05:00
|
|
|
For more information about this error, try `rustc --explain E0423`.
|