# Type Alias rustc_expand::base::UnexpectedExprKind

source ·

    type UnexpectedExprKind<'a> = Result<(Diag<'a>, bool), ErrorGuaranteed>;

Expand description

- `Ok` is returned when the conversion to a string literal is unsuccessful, but another type of expression is obtained instead.
- `Err` is returned when the conversion process fails.

## Aliased Type§

    enum UnexpectedExprKind<'a> {
        Ok((Diag<'a>, bool)),
        Err(ErrorGuaranteed),
    }

## Variants§

§1.0.0

### Ok((Diag<'a>, bool))

Contains the success value

§1.0.0

### Err(ErrorGuaranteed)

Contains the error value

## Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain `repr(...)` attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 24 bytes

Size for each variant:

- `Ok`: 24 bytes
- `Err`: 0 bytes