rust/tests/source/issue-1210/a.rs

13 lines
333 B
Rust
Raw Normal View History

// 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),
}
}
}