pub trait NonConstOp<'tcx>: Debug {
    fn build_error(
        &self,
        ccx: &ConstCx<'_, 'tcx>,
        span: Span
    ) -> DiagnosticBuilder<'tcx, ErrorGuaranteed>; fn status_in_item(&self, _ccx: &ConstCx<'_, 'tcx>) -> Status { ... } fn importance(&self) -> DiagnosticImportance { ... } }
Expand description

An operation that is not always allowed in a const context.

Required Methods

Provided Methods

Returns an enum indicating whether this operation is allowed within the given item.

Implementors