E0224 - Error codes index
Description: Book listing all Rust error codes

## Keyboard shortcuts

Press `←` or `→` to navigate between chapters

Press `S` or `/` to search in the book

Press `?` to show this help

Press `Esc` to hide this help

# Error code E0224

A trait object was declared with no traits.

Erroneous code example:

    #![allow(unused)]
    fn main() {
    type Foo = dyn 'static +;
    }

Rust does not currently support this.

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

    #![allow(unused)]
    fn main() {
    type Foo = dyn 'static + Copy;
    }