2018-08-08 14:28:26 +02:00
|
|
|
error[E0425]: cannot find function `foo` in this scope
|
2024-08-17 05:45:10 +00:00
|
|
|
--> $DIR/test-cfg.rs:8:5
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | foo();
|
2018-08-08 14:28:26 +02:00
|
|
|
| ^^^ not found in this scope
|
2024-08-17 05:45:10 +00:00
|
|
|
|
|
|
|
|
|
note: found an item that was configured out
|
|
|
|
|
--> $DIR/test-cfg.rs:5:4
|
|
|
|
|
|
|
2025-08-01 23:58:15 +00:00
|
|
|
LL | #[cfg(all(foo, bar))] // foo AND bar
|
|
|
|
|
| --- the item is gated here
|
|
|
|
|
LL |
|
2024-08-17 05:45:10 +00:00
|
|
|
LL | fn foo() {}
|
|
|
|
|
| ^^^
|
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`.
|