macro_rules! any {
    ($($args:tt)*) => { ... };
}
Expand description

Asserts that any of the passed-in features are enabled.

Example

This example demonstrates the error message when not enough features are enabled.

assert_cfg::any!{
    feature = "qux",
    feature = "bob",
}

When no feature is enabled, the above code produces this compile-time error:

error[E0080]: evaluation of constant value failed
 --> src/assert_any.rs:20:1
  |
4 | / assert_cfg::any!{
5 | |     feature = "qux",
6 | |     feature = "bob",
7 | | }
  | |_^ the evaluated program panicked at '
at least one of these features must be enabled:
- `feature = "qux"`
- `feature = "bob"`
', src/assert_any.rs:4:1///