[−][src]Enum rustdoc::doctest::TestFailure

pub(in doctest) enum TestFailure {
    CompileError,
    UnexpectedCompilePass,
    MissingErrorCodes(Vec<String>),
    ExecutionError(Error),
    ExecutionFailure(Output),
    UnexpectedRunPass,
}

Documentation test failure modes.

Variants

CompileError

The test failed to compile.

UnexpectedCompilePass

The test is marked compile_fail but compiled successfully.

MissingErrorCodes(Vec<String>)

The test failed to compile (as expected) but the compiler output did not contain all expected error codes.

ExecutionError(Error)

The test binary was unable to be executed.

ExecutionFailure(Output)

The test binary exited with a non-zero exit code.

This typically means an assertion in the test failed or another form of panic occurred.

UnexpectedRunPass

The test is marked should_panic but the test binary executed successfully.

Auto Trait Implementations

impl !RefUnwindSafe for TestFailure

impl Send for TestFailure

impl Sync for TestFailure

impl Unpin for TestFailure

impl !UnwindSafe for TestFailure

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, 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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithConstness for T[src]