]> git.lizzy.rs Git - rust.git/blob - tests/target/try-conversion.rs
Move Indent and Shape to shape.rs from lib.rs
[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).chain_err(|| {
22         format!(
23             "failed to create the {} submodule directory for the workarea",
24             name
25         )
26     })?;
27 }