summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/format_strings/issue-2833.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/rustfmt/tests/target/format_strings/issue-2833.rs')
-rw-r--r--src/tools/rustfmt/tests/target/format_strings/issue-2833.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/target/format_strings/issue-2833.rs b/src/tools/rustfmt/tests/target/format_strings/issue-2833.rs
new file mode 100644
index 000000000..704835325
--- /dev/null
+++ b/src/tools/rustfmt/tests/target/format_strings/issue-2833.rs
@@ -0,0 +1,15 @@
+// rustfmt-format_strings: true
+// rustfmt-max_width: 80
+
+fn test1() {
+ let expected = "\
+but Doctor Watson has to have it taken out for him and dusted,
+";
+}
+
+fn test2() {
+ let expected = "\
+[Omitted long matching line]
+but Doctor Watson has to have it taken out for him and dusted,
+";
+}