]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/source/issue-1350.rs
Rollup merge of #107166 - petrochenkov:nooptable, r=oli-obk
[rust.git] / src / tools / rustfmt / tests / source / issue-1350.rs
1 // rustfmt-max_width: 120
2 // rustfmt-comment_width: 110
3
4 impl Struct {
5     fn fun() {
6         let result = match <R::RequestResult as serde::Deserialize>::deserialize(&json) {
7             Ok(v) => v,
8             Err(e) => {
9                 match <R::ErrorResult as serde::Deserialize>::deserialize(&json) {
10                     Ok(v) => return Err(Error::with_json(v)),
11                     Err(e2) => return Err(Error::with_json(e)),
12                 }
13             }
14         };
15     }
16 }