summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-ui/feature-gate-custom_code_classes_in_docs.rs
blob: 99263a944f810bc25a4a7e0e8e7fba7d7d2d9a2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// check-pass

/// ```{class=language-c}
/// int main(void) { return 0; }
/// ```
//~^^^ 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;

/// ```ASN.1
/// int main(void) { return 0; }
/// ```
pub struct Bar2;