fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.2 KiB80 linesraw
1#![allow(unused)]
2#![warn(clippy::suspicious_doc_comments)]
3
4//! Real module documentation.
5//! Fake module documentation.
6fn baz() {}
7
8pub mod singleline_outer_doc {
9    //! This module contains useful functions.
10
11    pub fn bar() {}
12}
13
14pub mod singleline_inner_doc {
15    //! This module contains useful functions.
16
17    pub fn bar() {}
18}
19
20pub mod multiline_outer_doc {
21    /*! This module contains useful functions.
22     */
23
24    pub fn bar() {}
25}
26
27pub mod multiline_inner_doc {
28    /*! This module contains useful functions.
29     */
30
31    pub fn bar() {}
32}
33
34pub mod multiline_outer_doc2 {
35    //! This module
36    //! contains
37    //! useful functions.
38
39    pub fn bar() {}
40}
41
42pub mod multiline_outer_doc3 {
43    //! a
44    //! b
45
46    /// c
47    pub fn bar() {}
48}
49
50pub mod multiline_outer_doc4 {
51    //! a
52    /// b
53    pub fn bar() {}
54}
55
56pub mod multiline_outer_doc_gap {
57    //! a
58
59    //! b
60    pub fn bar() {}
61}
62
63pub mod multiline_outer_doc_commented {
64    /////! This outer doc comment was commented out.
65    pub fn bar() {}
66}
67
68pub mod outer_doc_macro {
69    //! Very cool macro
70    macro_rules! x {
71        () => {};
72    }
73}
74
75pub mod useless_outer_doc {
76    //! Huh.
77    use std::mem;
78}
79
80fn main() {}