Enum rustc_typeck::middle::traits::ObjectSafetyViolationUnstable [-]  [+] [src]

pub enum ObjectSafetyViolation<'tcx> {
    SizedSelf,
    Method(Rc<Method<'tcx>>, MethodViolationCode),
}

Variants

SizedSelf

Self : Sized declared on the trait

Method

Method has something illegal

Trait Implementations

impl<'tcx> Repr<'tcx> for ObjectSafetyViolation<'tcx>

fn repr(&self, tcx: &ctxt<'tcx>) -> String