]> git.lizzy.rs Git - rust.git/blob - tests/target/try-conversion.rs
Merge pull request #1502 from topecongiro/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 }
19
20 fn issue1291() {
21     fs::create_dir_all(&gitfiledir)
22         .chain_err(|| {
23                        format!("failed to create the {} submodule directory for the workarea",
24                                name)
25                    })?;
26 }