6 const IMPL_IS_INHERENT: bool = true;
10 const IMPL_IS_INHERENT: bool;
11 const IMPL_IS_ON_TRAIT: bool;
14 impl MyTrait for MyType {
15 const IMPL_IS_INHERENT: bool = false;
16 const IMPL_IS_ON_TRAIT: bool = true;
20 // Check that the inherent impl is used before the trait, but that the trait
21 // can still be accessed.
22 assert!(<MyType>::IMPL_IS_INHERENT);
23 assert!(!<MyType as MyTrait>::IMPL_IS_INHERENT);
24 assert!(<MyType>::IMPL_IS_ON_TRAIT);