]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/target/try-conversion.rs
Rollup merge of #85361 - bjorn3:rustdoc_target_json_path_canonicalize, r=jyn514
[rust.git] / src / tools / rustfmt / 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
7         .very
8         .loooooooooooooooooooooooooooooooooooooong()
9         .chain()
10         .inside()
11         .weeeeeeeeeeeeeee()?
12         .test()
13         .0
14         .x;
15 }
16
17 fn test() {
18     a?
19 }
20
21 fn issue1291() {
22     fs::create_dir_all(&gitfiledir).chain_err(|| {
23         format!(
24             "failed to create the {} submodule directory for the workarea",
25             name
26         )
27     })?;
28 }