summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-ui/custom_code_classes_in_docs-warning3.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc-ui/custom_code_classes_in_docs-warning3.rs')
-rw-r--r--tests/rustdoc-ui/custom_code_classes_in_docs-warning3.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/rustdoc-ui/custom_code_classes_in_docs-warning3.rs b/tests/rustdoc-ui/custom_code_classes_in_docs-warning3.rs
new file mode 100644
index 000000000..57d9038cb
--- /dev/null
+++ b/tests/rustdoc-ui/custom_code_classes_in_docs-warning3.rs
@@ -0,0 +1,17 @@
+// This test ensures that warnings are working as expected for "custom_code_classes_in_docs"
+// feature.
+
+#![feature(custom_code_classes_in_docs)]
+#![deny(warnings)]
+#![feature(no_core)]
+#![no_core]
+
+/// ```{class="}
+/// main;
+/// ```
+//~^^^ ERROR unclosed quote string
+//~| ERROR unclosed quote string
+/// ```"
+/// main;
+/// ```
+pub fn foo() {}