about summary refs log tree commit diff
path: root/tests/rustdoc-ui/feature-gate-custom_code_classes_in_docs.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc-ui/feature-gate-custom_code_classes_in_docs.rs')
-rw-r--r--tests/rustdoc-ui/feature-gate-custom_code_classes_in_docs.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/rustdoc-ui/feature-gate-custom_code_classes_in_docs.rs b/tests/rustdoc-ui/feature-gate-custom_code_classes_in_docs.rs
index 3f0f8b5b9f9..4fcced86a3b 100644
--- a/tests/rustdoc-ui/feature-gate-custom_code_classes_in_docs.rs
+++ b/tests/rustdoc-ui/feature-gate-custom_code_classes_in_docs.rs
@@ -8,3 +8,11 @@
 //~| NOTE see issue #79483 <https://github.com/rust-lang/rust/issues/79483>
 //~| HELP add `#![feature(custom_code_classes_in_docs)]` to the crate attributes to enable
 pub struct Bar;
+
+/// ```ASN.1
+/// int main(void) { return 0; }
+/// ```
+//~^^^ WARNING custom classes in code blocks will change behaviour
+//~| NOTE see issue #79483 <https://github.com/rust-lang/rust/issues/79483>
+//~| HELP add `#![feature(custom_code_classes_in_docs)]` to the crate attributes to enable
+pub struct Bar2;