2016-11-30 22:35:25 +00:00
|
|
|
error[E0423]: expected value, found module `a`
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/suggest-path-instead-of-mod-dot-item.rs:17:5
|
2016-11-30 22:35:25 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | a.I
|
2022-08-10 12:06:27 +00:00
|
|
|
| ^- help: use the path separator to refer to an item: `::`
|
2016-11-30 22:35:25 +00:00
|
|
|
|
2016-11-30 22:35:25 +00:00
|
|
|
error[E0423]: expected value, found module `a`
|
2022-08-10 12:06:27 +00:00
|
|
|
--> $DIR/suggest-path-instead-of-mod-dot-item.rs:23:5
|
2016-11-30 22:35:25 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | a.g()
|
2022-08-10 12:06:27 +00:00
|
|
|
| ^- help: use the path separator to refer to an item: `::`
|
2016-11-30 22:35:25 +00:00
|
|
|
|
2016-11-30 22:35:25 +00:00
|
|
|
error[E0423]: expected value, found module `a`
|
2022-08-10 12:06:27 +00:00
|
|
|
--> $DIR/suggest-path-instead-of-mod-dot-item.rs:29:5
|
2016-11-30 22:35:25 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | a.b.J
|
2022-08-10 12:06:27 +00:00
|
|
|
| ^- help: use the path separator to refer to an item: `::`
|
2016-11-30 22:35:25 +00:00
|
|
|
|
2016-11-30 22:35:25 +00:00
|
|
|
error[E0423]: expected value, found module `a::b`
|
2022-08-10 12:06:27 +00:00
|
|
|
--> $DIR/suggest-path-instead-of-mod-dot-item.rs:35:5
|
2016-11-30 22:35:25 +00:00
|
|
|
|
|
2019-10-15 00:20:50 +00:00
|
|
|
LL | pub const I: i32 = 1;
|
|
|
|
| --------------------- similarly named constant `I` defined here
|
|
|
|
...
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | a::b.J
|
2019-01-15 16:27:58 +00:00
|
|
|
| ^^^^
|
2019-10-24 05:20:58 +00:00
|
|
|
|
|
2019-01-15 16:27:58 +00:00
|
|
|
help: use the path separator to refer to an item
|
|
|
|
|
|
|
|
|
LL | a::b::J
|
2022-08-10 12:06:27 +00:00
|
|
|
| ~~
|
2020-08-10 03:29:39 +00:00
|
|
|
help: a constant with a similar name exists
|
|
|
|
|
|
|
|
|
LL | a::I.J
|
2021-06-22 02:07:19 +00:00
|
|
|
| ~
|
2016-11-30 22:35:25 +00:00
|
|
|
|
2016-11-30 22:35:25 +00:00
|
|
|
error[E0423]: expected value, found module `a`
|
2022-08-10 12:06:27 +00:00
|
|
|
--> $DIR/suggest-path-instead-of-mod-dot-item.rs:42:5
|
2016-11-30 22:35:25 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | a.b.f();
|
2022-08-10 12:06:27 +00:00
|
|
|
| ^- help: use the path separator to refer to an item: `::`
|
2016-11-30 22:35:25 +00:00
|
|
|
|
2016-11-30 22:35:25 +00:00
|
|
|
error[E0423]: expected value, found module `a::b`
|
2022-08-10 12:06:27 +00:00
|
|
|
--> $DIR/suggest-path-instead-of-mod-dot-item.rs:46:12
|
2016-11-30 22:35:25 +00:00
|
|
|
|
|
2019-10-15 00:20:50 +00:00
|
|
|
LL | pub const I: i32 = 1;
|
|
|
|
| --------------------- similarly named constant `I` defined here
|
|
|
|
...
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | v.push(a::b);
|
2017-03-08 19:15:12 +00:00
|
|
|
| ^^^-
|
|
|
|
| |
|
2019-01-09 19:11:00 +00:00
|
|
|
| help: a constant with a similar name exists: `I`
|
2016-11-30 22:35:25 +00:00
|
|
|
|
2016-11-30 22:35:25 +00:00
|
|
|
error[E0423]: expected value, found module `a::b`
|
2022-08-10 12:06:27 +00:00
|
|
|
--> $DIR/suggest-path-instead-of-mod-dot-item.rs:52:5
|
2016-11-30 22:35:25 +00:00
|
|
|
|
|
2019-10-15 00:20:50 +00:00
|
|
|
LL | pub const I: i32 = 1;
|
|
|
|
| --------------------- similarly named constant `I` defined here
|
|
|
|
...
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | a::b.f()
|
2019-01-15 16:27:58 +00:00
|
|
|
| ^^^^
|
2019-10-24 05:20:58 +00:00
|
|
|
|
|
2019-01-15 16:27:58 +00:00
|
|
|
help: use the path separator to refer to an item
|
|
|
|
|
|
|
|
|
LL | a::b::f()
|
2022-08-10 12:06:27 +00:00
|
|
|
| ~~
|
2020-08-10 03:29:39 +00:00
|
|
|
help: a constant with a similar name exists
|
|
|
|
|
|
|
|
|
LL | a::I.f()
|
2021-06-22 02:07:19 +00:00
|
|
|
| ~
|
2016-11-30 22:35:25 +00:00
|
|
|
|
2016-11-30 22:35:25 +00:00
|
|
|
error[E0423]: expected value, found module `a::b`
|
2022-08-10 12:06:27 +00:00
|
|
|
--> $DIR/suggest-path-instead-of-mod-dot-item.rs:59:5
|
2016-11-30 22:35:25 +00:00
|
|
|
|
|
2019-10-15 00:20:50 +00:00
|
|
|
LL | pub const I: i32 = 1;
|
|
|
|
| --------------------- similarly named constant `I` defined here
|
|
|
|
...
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | a::b
|
2017-03-08 19:15:12 +00:00
|
|
|
| ^^^-
|
|
|
|
| |
|
2019-01-09 19:11:00 +00:00
|
|
|
| help: a constant with a similar name exists: `I`
|
2016-11-30 22:35:25 +00:00
|
|
|
|
2016-11-30 22:35:25 +00:00
|
|
|
error[E0423]: expected function, found module `a::b`
|
2022-08-10 12:06:27 +00:00
|
|
|
--> $DIR/suggest-path-instead-of-mod-dot-item.rs:65:5
|
2016-11-30 22:35:25 +00:00
|
|
|
|
|
2019-10-15 00:20:50 +00:00
|
|
|
LL | pub const I: i32 = 1;
|
|
|
|
| --------------------- similarly named constant `I` defined here
|
|
|
|
...
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | a::b()
|
2017-03-08 19:15:12 +00:00
|
|
|
| ^^^-
|
|
|
|
| |
|
2019-01-09 19:11:00 +00:00
|
|
|
| help: a constant with a similar name exists: `I`
|
2016-11-30 22:35:25 +00:00
|
|
|
|
2022-08-10 12:06:27 +00: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 22:35:25 +00:00
|
|
|
|
2018-03-12 20:21:43 +00:00
|
|
|
For more information about this error, try `rustc --explain E0423`.
|