Error code E0380

An auto trait was declared with a method or an associated item.

Erroneous code example:

unsafe auto trait Trait {
    type Output; // error!
}
Run

Auto traits cannot have methods or associated items. For more information see the opt-in builtin traits RFC.

Back to list of error codes