Closed
Description
Example code:
pub type SomeError: &'static str;
pub enum MyError {
SomeErrorKind(SomeError),
}
results in
error: this pattern creates a reference to a reference
--> file.rs:3:15
|
3 | SomeErrorKind(SomeError),
| ^^^^^^^^^ help: change this to: `SomeError`
|
In my case the SomeError type comes from an external library
Metadata
Metadata
Assignees
Labels
No labels