You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a trait declares a method that has the same name as a method from its trait hierarchy, then both methods can only be called via UFCS. It's also confusing. As such, clippy should lint against it.
trait Base {
fn method() {}
}
trait Subtrait : Base {
//~ warning: method has same name as Base::method.
fn method() {}
}
The text was updated successfully, but these errors were encountered:
If a trait declares a method that has the same name as a method from its trait hierarchy, then both methods can only be called via UFCS. It's also confusing. As such, clippy should lint against it.
The text was updated successfully, but these errors were encountered: