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