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

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

Variants

SizedSelf

Self : Sized declared on the trait

SupertraitSelf

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

Method

Method has something illegal

Trait Implementations

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

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