summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/issue-1210/b.rs
blob: a7b1e3bcdc893d4f2d1049e0c1c3de8604193282 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 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!(
                "\ntarget `{}`: is not, \
                 configured as a host,
                            only as a target\n\n",
                target
            ),
        }
    }
}