blob: f00d17739448931af4e58d1cd7415b7eef09127d [file] [log] [blame] [view]
The `not` cfg-predicate was malformed.
Erroneous code example:
```compile_fail,E0536
pub fn main() {
if cfg!(not()) { }
}
```
The `not` predicate expects one cfg-pattern. Example:
```
pub fn main() {
if cfg!(not(target_os = "linux")) { } // ok!
}
```
For more information about the `cfg` macro, read the section on
[Conditional Compilation][conditional-compilation] in the Reference.
[conditional-compilation]: https://doc.rust-lang.org/reference/conditional-compilation.html