summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/source/issue-1210/a.rs
blob: 6bb9964b4e3538243e1ee1c676fb013531e53580 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// rustfmt-format_strings: true
// rustfmt-max_width: 50

impl Foo {
    fn cxx(&self, target: &str) -> &Path {
        match self.cxx.get(target) {
            Some(p) => p.path(),
            None => panic!("\n\ntarget `{}` is not configured as a host,
                            only as a target\n\n", target),
        }
    }
}