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

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

Example

assert_cfg::none!{
    feature = "foo",
    all(feature = "bar", feature = "baz"),
    feature = "qux",
}

When the "foo" and "bar" features are enabled, the above code produces this compile-time error:

error[E0080]: evaluation of constant value failed
 --> src/assert_none.rs:15:1
  |
4 | / assert_cfg::none!{
5 | |     feature = "foo",
6 | |     all(feature = "bar", feature = "baz"),
7 | |     feature = "qux",
8 | | }
  | |_^ the evaluated program panicked at '
these features must be disabled:
- `feature = "foo"`
- `all (feature = "bar", feature = "baz")`
', src/assert_none.rs:4:1
  |