Enum filecheck::Error[][src]

pub enum Error {
    Syntax(String),
    UndefVariable(String),
    Backref(String),
    DuplicateDef(String),
    Regex(Error),
}

A filecheck error.

Variants

A syntax error in a check line.

A check refers to an undefined variable.

The pattern contains $foo where the foo variable has not yet been defined. Use $$ to match a literal dollar sign.

A pattern contains a back-reference to a variable that was defined in the same pattern.

For example, check: Hello $(world=.*) $world. Backreferences are not supported. Often the desired effect can be achieved with the sameln check:

check: Hello $(world=[^ ]*)
sameln: $world

A pattern contains multiple definitions of the same variable.

An error in a regular expression.

Use cause() to get the underlying Regex library error.

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter. Read more

impl From<Error> for Error
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Error

impl Sync for Error