E4006 Reference Errors

undefined-type-new

type not found for new expression

When this occurs

`new UnknownType{}`

Example error message

error[E4006]: undefined type: 'Foo'

How to fix

Define the struct before using `new` with it.

Related errors