]> git.proxmox.com Git - rustc.git/blob - src/tools/rustfmt/tests/target/issue-1210/b.rs
New upstream version 1.52.1+dfsg1
[rustc.git] / src / tools / rustfmt / tests / target / issue-1210 / b.rs
1 // rustfmt-format_strings: true
2 // rustfmt-max_width: 50
3
4 impl Foo {
5 fn cxx(&self, target: &str) -> &Path {
6 match self.cxx.get(target) {
7 Some(p) => p.path(),
8 None => panic!(
9 "\ntarget `{}`: is not, \
10 configured as a host,
11 only as a target\n\n",
12 target
13 ),
14 }
15 }
16 }