Enum rustc_middle::mir::interpret::LitToConstError [−][src]
pub enum LitToConstError {
TypeError,
UnparseableFloat,
Reported,
}Expand description
Error type for tcx.lit_to_const.
Variants
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).
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for LitToConstErrorimpl Send for LitToConstErrorimpl Sync for LitToConstErrorimpl Unpin for LitToConstErrorimpl UnwindSafe for LitToConstErrorBlanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may be different between compiler versions and platforms. 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