Enum rustc::middle::traits::ObjectSafetyViolation [−] [src]

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

Variants

SizedSelf
Unstable

Self : Sized declared on the trait

SupertraitSelf
Unstable

Supertrait reference references Self an in illegal location (e.g. trait Foo : Bar<Self>)

Method
Unstable

Method has something illegal

Trait Implementations

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

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