2016-01-02 03:57:55 -06:00
|
|
|
use std::fmt;
|
|
|
|
|
2017-01-11 16:18:08 -06:00
|
|
|
impl fmt::Display for DecoderError { //~ ERROR cannot find type `DecoderError` in this scope
|
2016-01-02 03:57:55 -06:00
|
|
|
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
|
|
|
write!(f, "Missing data: {}", self.0)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fn main() {
|
|
|
|
}
|