]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-30589.rs
point at private fields in struct literal
[rust.git] / src / test / ui / issues / issue-30589.rs
1 use std::fmt;
2
3 impl fmt::Display for DecoderError { //~ ERROR cannot find type `DecoderError` in this scope
4     fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
5         write!(f, "Missing data: {}", self.0)
6     }
7 }
8 fn main() {
9 }