Docs menu

E113: That syntax used to exist, but doesn't any more

What compiler error E113 means, and how to fix it.

Turf changed. The form you wrote was valid in an earlier version, and now it is an error with a pointer to what replaced it. The message says which.

Struct creation moved from a brace literal to a call:

Example
mut p: Point = Point { x: 1, y: 2 };      // removedmut p: Point = Point::new(1, 2);          // a struct with a constructormut p: Point = Point::default();          // every field zeroed

Static methods moved from :: in the declaration to a static marker on the method:

Example
fn Point::origin(): Point { ... }         // removedfn Point.origin() static: Point { ... }

If you are following an old tutorial or an example you found online, this is the usual cause: the example predates the change.

Run turf --explain E113 in a terminal to read this again.

Last updated: Oct 15, 2026Edit this page on GitHub

Esc

Type to search.