1 The code refers to a trait that is not in scope.
3 Erroneous code example:
8 impl SomeTrait for Foo {} // error: trait `SomeTrait` is not in scope
11 Please verify that the name of the trait wasn't misspelled and ensure that it
12 was imported. Example:
15 # #[cfg(for_demonstration_only)]
17 use some_file::SomeTrait;
26 impl SomeTrait for Foo { // ok!
27 // implements functions