]> git.proxmox.com Git - rustc.git/blame - src/tools/rustfmt/tests/target/try-conversion.rs
Update upstream source from tag 'upstream/1.52.1+dfsg1'
[rustc.git] / src / tools / rustfmt / tests / target / try-conversion.rs
CommitLineData
f20569fa
XL
1// rustfmt-use_try_shorthand: true
2
3fn 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
17fn test() {
18 a?
19}
20
21fn 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}