2018-04-07 09:28:31 -05:00
|
|
|
error[E0425]: cannot find function `f` in this scope
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/globs.rs:22:9
|
2018-04-07 09:28:31 -05:00
|
|
|
|
|
2022-10-16 03:51:11 -05:00
|
|
|
LL | pub fn g() {}
|
|
|
|
| ---------- similarly named function `g` defined here
|
|
|
|
...
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | f();
|
2022-10-16 03:51:11 -05:00
|
|
|
| ^
|
|
|
|
|
|
|
|
|
help: a function with a similar name exists
|
2019-10-24 00:20:58 -05:00
|
|
|
|
|
2022-10-16 03:51:11 -05:00
|
|
|
LL | g();
|
|
|
|
| ~
|
2021-09-10 18:15:40 -05:00
|
|
|
help: consider importing this function
|
2018-04-07 09:28:31 -05:00
|
|
|
|
|
2023-03-17 21:18:39 -05:00
|
|
|
LL + use foo::f;
|
2018-04-07 09:28:31 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
error[E0425]: cannot find function `g` in this scope
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/globs.rs:15:5
|
2018-04-07 09:28:31 -05:00
|
|
|
|
|
2022-10-16 03:51:11 -05:00
|
|
|
LL | pub fn f() {}
|
|
|
|
| ---------- similarly named function `f` defined here
|
|
|
|
...
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | g();
|
2022-10-16 03:51:11 -05:00
|
|
|
| ^
|
2018-04-07 09:28:31 -05:00
|
|
|
...
|
|
|
|
LL | / m! {
|
|
|
|
LL | | use bar::*;
|
|
|
|
LL | | g();
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | | f();
|
2018-04-07 09:28:31 -05:00
|
|
|
LL | | }
|
|
|
|
| |_____- in this macro invocation
|
2019-10-24 00:20:58 -05:00
|
|
|
|
|
2021-02-13 13:52:25 -06:00
|
|
|
= note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2022-10-16 03:51:11 -05:00
|
|
|
help: a function with a similar name exists
|
|
|
|
|
|
|
|
|
LL | f();
|
|
|
|
| ~
|
2020-06-13 12:58:46 -05:00
|
|
|
help: consider importing this function
|
2018-04-07 09:28:31 -05:00
|
|
|
|
|
2023-03-17 21:18:39 -05:00
|
|
|
LL + use bar::g;
|
2018-04-07 09:28:31 -05:00
|
|
|
|
|
2018-07-07 15:07:06 -05:00
|
|
|
|
|
|
|
error[E0425]: cannot find function `f` in this scope
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/globs.rs:61:12
|
2018-07-07 15:07:06 -05:00
|
|
|
|
|
|
|
|
LL | n!(f);
|
2021-10-14 13:28:28 -05:00
|
|
|
| ----- in this macro invocation
|
2018-07-07 15:07:06 -05:00
|
|
|
...
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | n!(f);
|
2018-07-07 15:07:06 -05:00
|
|
|
| ^ not found in this scope
|
2020-01-22 01:01:21 -06:00
|
|
|
|
|
2023-01-16 21:09:49 -06:00
|
|
|
= help: consider importing this function:
|
2020-01-22 01:01:21 -06:00
|
|
|
foo::f
|
2021-02-13 13:52:25 -06:00
|
|
|
= note: this error originates in the macro `n` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2018-04-07 09:28:31 -05:00
|
|
|
|
|
|
|
error[E0425]: cannot find function `f` in this scope
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/globs.rs:65:17
|
2018-04-07 09:28:31 -05:00
|
|
|
|
|
|
|
|
LL | n!(f);
|
2021-10-14 13:28:28 -05:00
|
|
|
| ----- in this macro invocation
|
2018-04-07 09:28:31 -05:00
|
|
|
...
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | f
|
2018-04-07 09:28:31 -05:00
|
|
|
| ^ not found in this scope
|
2020-01-22 01:01:21 -06:00
|
|
|
|
|
2023-01-16 21:09:49 -06:00
|
|
|
= help: consider importing this function:
|
2020-01-22 01:01:21 -06:00
|
|
|
foo::f
|
2021-02-13 13:52:25 -06:00
|
|
|
= note: this error originates in the macro `n` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2018-04-07 09:28:31 -05:00
|
|
|
|
2018-07-07 15:07:06 -05:00
|
|
|
error: aborting due to 4 previous errors
|
2018-04-07 09:28:31 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0425`.
|