x.f(a) means f(x, a): Auk looks for a function f whose first parameter fits the type of
x, in x's module, the current one and core. None was found for this type.
Wrong#
fn main() {
print(5.trim())
}Fixed#
fn main() {
print(str(5).trim())
}Common causes#
- Calling a method meant for another type (
trimis forstr, notint). - A missing conversion:
str(n),float(n),int(x). - A misspelled method name, or one that doesn't exist in core.
- The function exists but takes a different number of arguments.