#[derive(Clone, Debug, RustcEncodable, RustcDecodable)]
pub enum ErrKind<'tcx> {
- NonConstPath,
CouldNotResolve,
TypeckError,
CheckMatchError,
}
match *self.kind {
- NonConstPath => simple!("non-constant path in constant expression"),
CouldNotResolve => simple!("could not resolve"),
TypeckError => simple!("type-checking failed"),
CheckMatchError => simple!("match-checking failed"),
use middle::const_val::ErrKind::*;
Some(match *self {
- NonConstPath => NonConstPath,
CouldNotResolve => CouldNotResolve,
TypeckError => TypeckError,
CheckMatchError => CheckMatchError,