E0345

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

E0345 error

{n} is a fn parameter, so it cannot be assigned or reused as a variable name

What to do

pick another name for the variable

From the binary

$ midad explain E0345
E0345 (error)
  `{n}` is a `fn` parameter, so it cannot be assigned or reused as a variable name
  fix: pick another name for the variable

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