summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/doctest/doctest-multi-line-string-literal-25944.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc/doctest/doctest-multi-line-string-literal-25944.rs')
-rw-r--r--tests/rustdoc/doctest/doctest-multi-line-string-literal-25944.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/rustdoc/doctest/doctest-multi-line-string-literal-25944.rs b/tests/rustdoc/doctest/doctest-multi-line-string-literal-25944.rs
new file mode 100644
index 000000000..eec796e4f
--- /dev/null
+++ b/tests/rustdoc/doctest/doctest-multi-line-string-literal-25944.rs
@@ -0,0 +1,14 @@
+// compile-flags:--test
+
+// https://github.com/rust-lang/rust/issues/25944
+#![crate_name="issue_25944"]
+
+/// ```
+/// let a = r#"
+/// foo
+/// bar"#;
+/// let b = "\nfoo\nbar";
+/// assert_eq!(a, b);
+/// ```
+pub fn main() {
+}