File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 8
8
//~| NOTE see issue #79483 <https://github.com/rust-lang/rust/issues/79483>
9
9
//~| HELP add `#![feature(custom_code_classes_in_docs)]` to the crate attributes to enable
10
10
pub struct Bar ;
11
+
12
+ /// ```ASN.1
13
+ /// int main(void) { return 0; }
14
+ /// ```
15
+ //~^^^ WARNING custom classes in code blocks will change behaviour
16
+ //~| NOTE see issue #79483 <https://github.com/rust-lang/rust/issues/79483>
17
+ //~| HELP add `#![feature(custom_code_classes_in_docs)]` to the crate attributes to enable
18
+ pub struct Bar2 ;
Original file line number Diff line number Diff line change @@ -10,5 +10,16 @@ LL | | /// ```
10
10
= help: add `#![feature(custom_code_classes_in_docs)]` to the crate attributes to enable
11
11
= note: found these custom classes: class=language-c
12
12
13
- warning: 1 warning emitted
13
+ warning: custom classes in code blocks will change behaviour
14
+ --> $DIR/feature-gate-custom_code_classes_in_docs.rs:12:1
15
+ |
16
+ LL | / /// ```ASN.1
17
+ LL | | /// int main(void) { return 0; }
18
+ LL | | /// ```
19
+ | |_______^
20
+ |
21
+ = note: see issue #79483 <https://github.com/rust-lang/rust/issues/79483> for more information
22
+ = help: add `#![feature(custom_code_classes_in_docs)]` to the crate attributes to enable
23
+
24
+ warning: 2 warnings emitted
14
25
You can’t perform that action at this time.
0 commit comments