]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/source/issue_1306.rs
Rollup merge of #107166 - petrochenkov:nooptable, r=oli-obk
[rust.git] / src / tools / rustfmt / tests / source / issue_1306.rs
1 // rustfmt-max_width: 160
2 // rustfmt-fn_call_width: 96
3 // rustfmt-fn_args_layout: Compressed
4 // rustfmt-trailing_comma: Always
5 // rustfmt-wrap_comments: true
6
7 fn foo() {
8     for elem in try!(gen_epub_book::ops::parse_descriptor_file(&mut try!(File::open(&opts.source_file.1).map_err(|_| {
9         gen_epub_book::Error::Io {
10             desc: "input file",
11             op: "open",
12             more: None,
13         }
14     })),
15                                                                "input file")) {
16         println!("{}", elem);
17     }
18 }
19
20 fn write_content() {
21     io::copy(try!(File::open(in_f).map_err(|_| {
22         Error::Io {
23             desc: "Content",
24             op: "open",
25             more: None,
26         }
27     })),
28              w);
29 }