A definition of a method not in the implemented trait was given in a trait
implementation.
Erroneous code example:
#![allow(unused)]fnmain() {
traitFoo {
fna();
}
structBar;
impl Foo for Bar {
fna() {}
fnb() {} // error: method `b` is not a member of trait `Foo`
}
}
ⓘ
Please verify you didn't misspell the method name and you used the correct
trait. First example: