Example:
trait Method { fn method() {} }
trait Tr {}
impl Method for Tr {} // warning: trait objects without an explicit `dyn` are deprecated
fn main() {
Tr::method; // No warning
}
According to the logic of the lint there should be a suggestion to rewrite Tr::method as <dyn Tr>::method.
Example:
According to the logic of the lint there should be a suggestion to rewrite
Tr::methodas<dyn Tr>::method.