]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc-ui/check-attr.rs
Merge commit '7d53619064ab7045c383644cb445052d2a3d46db' into sync_cg_clif-2023-02-09
[rust.git] / tests / rustdoc-ui / check-attr.rs
1 #![deny(rustdoc::invalid_codeblock_attributes)]
2
3 /// foo
4 //~^ ERROR
5 //~^^ ERROR
6 //~^^^ ERROR
7 ///
8 /// ```compile-fail,compilefail,comPile_fail
9 /// boo
10 /// ```
11 pub fn foo() {}
12
13 /// bar
14 //~^ ERROR
15 //~^^ ERROR
16 //~^^^ ERROR
17 ///
18 /// ```should-panic,shouldpanic,sHould_panic
19 /// boo
20 /// ```
21 pub fn bar() {}
22
23 /// foobar
24 //~^ ERROR
25 //~^^ ERROR
26 //~^^^ ERROR
27 ///
28 /// ```no-run,norun,no_Run
29 /// boo
30 /// ```
31 pub fn foobar() {}
32
33 /// b
34 //~^ ERROR
35 //~^^ ERROR
36 //~^^^ ERROR
37 ///
38 /// ```test-harness,testharness,teSt_harness
39 /// boo
40 /// ```
41 pub fn b() {}