about summary refs log tree commit diff
path: root/tests/rustdoc-ui/doctest/comment-in-attr-134221-2.rs
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2024-12-16 17:59:07 +0100
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2024-12-16 17:59:07 +0100
commitc367cc3ef5648d5695fdb795cc66edbff88b4ce9 (patch)
tree5d8bc6856784c51abd06884ac4f4140d993939e1 /tests/rustdoc-ui/doctest/comment-in-attr-134221-2.rs
parent23839853425e8c0c80d0aadb32bf5b4ba1bdf64b (diff)
downloadrust-c367cc3ef5648d5695fdb795cc66edbff88b4ce9.tar.gz
rust-c367cc3ef5648d5695fdb795cc66edbff88b4ce9.zip
Remove unneeded handling of backlines in doctest attributes
Diffstat (limited to 'tests/rustdoc-ui/doctest/comment-in-attr-134221-2.rs')
-rw-r--r--tests/rustdoc-ui/doctest/comment-in-attr-134221-2.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/rustdoc-ui/doctest/comment-in-attr-134221-2.rs b/tests/rustdoc-ui/doctest/comment-in-attr-134221-2.rs
new file mode 100644
index 00000000000..8cdd665ff69
--- /dev/null
+++ b/tests/rustdoc-ui/doctest/comment-in-attr-134221-2.rs
@@ -0,0 +1,15 @@
+//@ compile-flags:--test --test-args --test-threads=1
+//@ failure-status: 101
+//@ normalize-stdout-test: "tests/rustdoc-ui/doctest" -> "$$DIR"
+//@ normalize-stdout-test: "finished in \d+\.\d+s" -> "finished in $$TIME"
+//@ normalize-stdout-test: ".rs:\d+:\d+" -> ".rs:$$LINE:$$COL"
+
+//! ```
+#![doc = "#![all\
+ow(unused)]"]
+//! ```
+//!
+//! ```
+#![doc = r#"#![all\
+ow(unused)]"#]
+//! ```