MZ2008
MZ2008 · Type Error · ERROR
Undefined Trait
A trait name was used in an impl block but has not been defined.

Cause

The trait referenced in impl TraitName for TypeName does not exist.

Examples

Example 1

Problem:

impl Drawble for Circle { fn draw() {} }

Drawble is misspelled (should be Drawable).

Fix:

Use the correct trait name: Drawable

Hint

Check the trait name spelling.

Suggestion

Define the trait, or use the correct name.

Related