]> git.lizzy.rs Git - rust.git/blob - tests/target/try-conversion.rs
Add try macro to try shorthand conversion tests
[rust.git] / tests / target / try-conversion.rs
1 // rustfmt-use_try_shorthand: true
2
3 fn main() {
4     let x = some_expr()?;
5
6     let y = a.very
7              .loooooooooooooooooooooooooooooooooooooong()
8              .chain()
9              .inside()
10              .weeeeeeeeeeeeeee()?
11              .test()
12              .0
13              .x;
14 }
15
16 fn test() {
17     a?
18 }