]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc-ui/check-attr-test.rs
Auto merge of #101138 - Rejyr:diagnostic-migration-rustc-lint-pt2, r=davidtwco
[rust.git] / tests / rustdoc-ui / check-attr-test.rs
1 // compile-flags:--test
2
3 #![deny(rustdoc::invalid_codeblock_attributes)]
4
5 /// foo
6 ///
7 /// ```compile-fail,compilefail,comPile_fail
8 /// boo
9 /// ```
10 pub fn foo() {}
11
12 /// bar
13 ///
14 /// ```should-panic,shouldpanic,shOuld_panic
15 /// boo
16 /// ```
17 pub fn bar() {}
18
19 /// foobar
20 ///
21 /// ```no-run,norun,nO_run
22 /// boo
23 /// ```
24 pub fn foobar() {}
25
26 /// b
27 ///
28 /// ```test-harness,testharness,tesT_harness
29 /// boo
30 /// ```
31 pub fn b() {}