]> git.lizzy.rs Git - rust.git/blob - tests/target/issue-3158.rs
Merge commit 'efa8f5521d3813cc897ba29ea0ef98c7aef66bb6' into rustfmt-subtree
[rust.git] / tests / target / issue-3158.rs
1 // rustfmt-format_code_in_doc_comments: true
2
3 /// Should format
4 /// ```rust
5 /// assert!(false);
6 /// ```
7 ///
8 /// Should format
9 /// ```rust,should_panic
10 /// assert!(false);
11 /// ```
12 ///
13 /// Should format
14 /// ```rust,should_panic,edition2018
15 /// assert!(false);
16 /// ```
17 ///
18 /// Should format
19 /// ```rust , should_panic , edition2018
20 /// assert!(false);
21 /// ```
22 ///
23 /// Should not format
24 /// ```ignore
25 /// assert!( false );
26 /// ```
27 ///
28 /// Should not format (not all are rust)
29 /// ```rust,ignore
30 /// assert!( false );
31 /// ```
32 ///
33 /// Should not format (rust compile_fail)
34 /// ```compile_fail
35 /// assert!( false );
36 /// ```
37 ///
38 /// Should not format (rust compile_fail)
39 /// ```rust,compile_fail
40 /// assert!( false );
41 /// ```
42 ///
43 /// Various unspecified ones that should format
44 /// ```
45 /// assert!(false);
46 /// ```
47 ///
48 /// ```,
49 /// assert!(false);
50 /// ```
51 ///
52 /// ```,,,,,
53 /// assert!(false);
54 /// ```
55 ///
56 /// ```,,,  rust  ,,
57 /// assert!(false);
58 /// ```
59 ///
60 /// Should not format
61 /// ```,,,  rust  ,  ignore,
62 /// assert!( false );
63 /// ```
64 ///
65 /// Few empty ones
66 /// ```
67 /// ```
68 ///
69 /// ```rust
70 /// ```
71 ///
72 /// ```ignore
73 /// ```
74 fn foo() {}