1 2 3 4 5 6 7
struct Foo; fn main() { let a: Result<(), Foo> = Ok(()); a.unwrap(); //~^ ERROR `Foo` doesn't implement `Debug` }