E0246

generated from midad spec --json at build time; not edited by hand

E0246 error

This code is raised with a message built where the checker raises it, so the binary has no message template and no fix text for it: midad explain E0246 prints a dash in both places. The message in a real diagnostic names what the checker saw.

From the binary

$ midad explain E0246
E0246 (error)
  `?` can only be used in a function that returns an option or result (this one returns {})
  fix: -

A message template can carry {} where the checker fills in the values it saw: the type it expected, the target it refused, the name it could not find.

On this page