How can I solve this?
error:
error[E0308]: mismatched types
--> src/error/parse_code/string_syntaxerror.rs:44:9
|
17 | impl CompilerError for StringSyntaxError {
| ----------------- this is the type of the `Self` literal
...
43 | fn err_clone<E: CompilerError>(&self) -> E {
| - - expected `E` because of return type
| |
| expected this type parameter
44 | / Self {
45 | | file: self.file.clone(),
46 | | line: self.line.clone(),
47 | | col : self.col.clone()
48 | | }
| |_________^ expected type parameter `E`, found `StringSyntaxError`
|
= note: expected type parameter `E`
found struct `error::parse_code::string_syntaxerror::StringSyntaxError`
= note: the caller chooses a type for `E` which can be different from `error::parse_code::string_syntaxerror::StringSyntaxError`