[][src]Enum filecheck::Error

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

A filecheck error.

Variants

Syntax(String)

A syntax error in a check line.

UndefVariable(String)

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.

Backref(String)

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
DuplicateDef(String)

A pattern contains multiple definitions of the same variable.

Regex(Error)

An error in a regular expression.

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

Trait Implementations

impl Debug for Error[src]

impl Display for Error[src]

impl Error for Error[src]

impl From<Error> for Error[src]

Auto Trait Implementations

impl RefUnwindSafe for Error

impl Send for Error

impl Sync for Error

impl Unpin for Error

impl UnwindSafe for Error

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.