]> git.lizzy.rs Git - rust.git/blob - tests/target/issue-1210/a.rs
fix rewrite_string when a line feed is present in a sequence of whitespaces, resultin...
[rust.git] / tests / target / issue-1210 / a.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                 "\n\ntarget `{}` is not \
10                  configured as a host,
11                             only as a target\n\n",
12                 target
13             ),
14         }
15     }
16 }