1 // rustfmt-use_try_shorthand: true 2 main()3fn main() { 4 let x = try!(some_expr()); 5 6 let y = try!(a.very.loooooooooooooooooooooooooooooooooooooong().chain().inside().weeeeeeeeeeeeeee()).test().0.x; 7 } 8 test()9fn test() { 10 a? 11 } 12 issue1291()13fn issue1291() { 14 try!(fs::create_dir_all(&gitfiledir).chain_err(|| { 15 format!("failed to create the {} submodule directory for the workarea", 16 name) 17 })); 18 } 19