1 struct Foo;
2 
main()3 fn main() {
4     let a: Result<(), Foo> = Ok(());
5     a.unwrap();
6     //~^ ERROR the method
7 }
8