Closed
Description
compile error:
self
is not available in a static method. Maybe aself
argument is missing? [E0424]
I would like to reuse the error description in the Display::fmt function on some occasions. It would be nice to do this by delegation to self.description(). There might be addional usecases for &self
access.
quick_error! {
#[derive(Debug)]
pub enum LoaderError {
ArrayTemplateNotFound(name: String) {
description("Template not found")
display("{}: {:?}", self.description(), name)
}
}
}
Metadata
Metadata
Assignees
Labels
No labels