Content-Length: 24119 | pFad | https://doc.rust-lang.org/std/string/../error/../string/../../std/../error_codes/./E0537.html

E0537 - Error codes index

Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Error code E0537

An unknown predicate was used inside the cfg attribute.

Erroneous code example:

#[cfg(unknown())] // error: invalid predicate `unknown`
pub fn something() {}

pub fn main() {}

The cfg attribute supports only three kinds of predicates:

  • any
  • all
  • not

Example:

#[cfg(not(target_os = "linux"))] // ok!
pub fn something() {}

pub fn main() {}

For more information about the cfg attribute, read the section on Conditional Compilation in the Reference.









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://doc.rust-lang.org/std/string/../error/../string/../../std/../error_codes/./E0537.html

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy