2018-08-08 14:28:26 +02:00
|
|
|
error[E0425]: cannot find function `bar` in module `a`
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/macro-outer-attributes.rs:18:8
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | a::bar();
|
2018-08-08 14:28:26 +02:00
|
|
|
| ^^^ not found in `a`
|
2019-10-23 22:20:58 -07:00
|
|
|
|
|
2023-03-10 22:39:14 +01:00
|
|
|
note: found an item that was configured out
|
|
|
|
--> $DIR/macro-outer-attributes.rs:9:14
|
|
|
|
|
|
|
|
|
LL | pub fn bar() { });
|
|
|
|
| ^^^
|
2024-07-12 18:52:52 +00:00
|
|
|
note: the item is gated here
|
|
|
|
--> $DIR/macro-outer-attributes.rs:5:45
|
|
|
|
|
|
|
|
|
LL | $i:item) => (mod $nm { #[$a] $i }); }
|
|
|
|
| ^^^^^
|
|
|
|
LL |
|
|
|
|
LL | / test!(a,
|
|
|
|
LL | | #[cfg(FALSE)],
|
|
|
|
LL | | pub fn bar() { });
|
|
|
|
| |_______________________- in this macro invocation
|
|
|
|
= note: this error originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2022-05-03 02:07:47 +00:00
|
|
|
help: consider importing this function
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2023-03-18 02:18:39 +00:00
|
|
|
LL + use b::bar;
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2022-05-03 02:07:47 +00:00
|
|
|
help: if you import `bar`, refer to it directly
|
2022-04-23 16:41:36 -07:00
|
|
|
|
|
|
|
|
LL - a::bar();
|
|
|
|
LL + bar();
|
2022-06-08 20:34:57 +03:00
|
|
|
|
|
2018-08-08 14:28:26 +02:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0425`.
|