diff options
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.rs | 7 |
1 files changed, 6 insertions, 1 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 8aa13b2d5d1..3f0f8b5b9f9 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 @@ -1,5 +1,10 @@ +// check-pass + /// ```{class=language-c} /// int main(void) { return 0; } /// ``` -//~^^^ ERROR 1:1: 3:8: custom classes in code blocks are unstable [E0658] +//~^^^ WARNING custom classes in code blocks will change behaviour +//~| NOTE found these custom classes: class=language-c +//~| 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; |
