Error code E0224

A trait object was declared with no traits.

Erroneous code example:

type Foo = dyn 'static +;
Run

Rust does not currently support this.

To solve, ensure that the trait object has at least one trait:

type Foo = dyn 'static + Copy;
Run

Back to list of error codes