1 error[E0411]: cannot find type `Self` in this scope
5 | ---- `Self` not allowed in a function
7 | ^^^^ `Self` is only available in impls, traits, and type definitions
9 error: aborting due to previous error
11 For more information about this error, try `rustc --explain E0411`.