1
Fork 0

Update tests for custom_code_classes_in_docs feature

This commit is contained in:
Guillaume Gomez 2023-09-17 14:53:30 +02:00
parent e1294b26af
commit c17abf124c
3 changed files with 14 additions and 7 deletions

View file

@ -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;