]> git.lizzy.rs Git - rust.git/blob - tests/source/try-conversion.rs
Merge pull request #893 from marcusklaas/try-shorthand
[rust.git] / tests / source / try-conversion.rs
1 // rustfmt-use_try_shorthand: true
2
3 fn main() {
4     let x = try!(some_expr());
5
6     let y = try!(a.very.loooooooooooooooooooooooooooooooooooooong().chain().inside().weeeeeeeeeeeeeee()).test().0.x;
7 }
8
9 fn test() {
10     a?
11 }