diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/rustdoc-ui/feature-gate-custom_code_classes_in_docs.rs | 7 | ||||
| -rw-r--r-- | tests/rustdoc-ui/feature-gate-custom_code_classes_in_docs.stderr | 7 |
2 files changed, 9 insertions, 5 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; diff --git a/tests/rustdoc-ui/feature-gate-custom_code_classes_in_docs.stderr b/tests/rustdoc-ui/feature-gate-custom_code_classes_in_docs.stderr index c41ebfc8073..1a2360d9b30 100644 --- a/tests/rustdoc-ui/feature-gate-custom_code_classes_in_docs.stderr +++ b/tests/rustdoc-ui/feature-gate-custom_code_classes_in_docs.stderr @@ -1,5 +1,5 @@ -error[E0658]: custom classes in code blocks are unstable - --> $DIR/feature-gate-custom_code_classes_in_docs.rs:1:1 +warning: custom classes in code blocks will change behaviour + --> $DIR/feature-gate-custom_code_classes_in_docs.rs:3:1 | LL | / /// ```{class=language-c} LL | | /// int main(void) { return 0; } @@ -10,6 +10,5 @@ LL | | /// ``` = help: add `#![feature(custom_code_classes_in_docs)]` to the crate attributes to enable = note: found these custom classes: class=language-c -error: aborting due to previous error +warning: 1 warning emitted -For more information about this error, try `rustc --explain E0658`. |
