]> git.lizzy.rs Git - rust.git/blob - tests/source/issue-1350.rs
fix: don't drop leading comments in extern
[rust.git] / 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 }