Enum miri::interpret::LitToConstError
source · pub enum LitToConstError {
TypeError,
Reported(ErrorGuaranteed),
}
Expand description
Error type for tcx.lit_to_const
.
Variants§
TypeError
The literal’s inferred type did not match the expected ty
in the input.
This is used for graceful error handling (delay_span_bug
) in
type checking (Const::from_anon_const
).
Reported(ErrorGuaranteed)
Auto Trait Implementations§
impl RefUnwindSafe for LitToConstError
impl Send for LitToConstError
impl Sync for LitToConstError
impl Unpin for LitToConstError
impl UnwindSafe for LitToConstError
Blanket Implementations§
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: 1 byte
Size for each variant:
TypeError
: 0 bytesReported
: 0 bytes