chore!: convert TraitMethodNotInScope
to error
#7427
Merged
TraitMethodNotInScope
to error
#7427