Error codes

E0103: no function for this receiver type (dot call)

In a terminal: auk explain E0103 prints this page.

On this page

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#

auk
fn main() {
  print(5.trim())
}

Fixed#

auk
fn main() {
  print(str(5).trim())
}

Common causes#

  • Calling a method meant for another type (trim is for str, not int).
  • 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.

Stuck on a word? Try the glossary. Got a compiler error? Look up its code. Improve this page