summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/source/issue-1350.rs
blob: 1baa1985a7ea0d248d98935036602b62a2569f18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// rustfmt-max_width: 120
// rustfmt-comment_width: 110

impl Struct {
    fn fun() {
        let result = match <R::RequestResult as serde::Deserialize>::deserialize(&json) {
            Ok(v) => v,
            Err(e) => {
                match <R::ErrorResult as serde::Deserialize>::deserialize(&json) {
                    Ok(v) => return Err(Error::with_json(v)),
                    Err(e2) => return Err(Error::with_json(e)),
                }
            }
        };
    }
}