modtypes{useinherent::inherent;traitTrait{fnf<T: ?Sized>(self);// A default methodfng(&self){}}pubstructStruct;#[inherent]implTraitforStruct{pubfnf<T: ?Sized>(self){}pubfng(&self);}}#[test]fntest(){// types::Trait is not in scope.lets=types::Struct;s.g();s.f::<str>();}