E0161

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

E0161 error

{kw} wants the {{ at the end of the line, with the body on the lines below

What to do

put the opening brace last on its line, the statements under it, and } on its own line; a body on the same line as the { is not supported

From the binary

$ midad explain E0161
E0161 (error)
  `{kw}` wants the `{{` at the end of the line, with the body on the lines below
  fix: put the opening brace last on its line, the statements under it, and `}` on its own line; a body on the same line as the `{` is not supported

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