]> git.proxmox.com Git - rustc.git/blob - src/tools/rustfmt/tests/target/itemized-blocks/wrap.rs
New upstream version 1.72.1+dfsg1
[rustc.git] / src / tools / rustfmt / tests / target / itemized-blocks / wrap.rs
1 // rustfmt-wrap_comments: true
2 // rustfmt-format_code_in_doc_comments: true
3 // rustfmt-max_width: 50
4
5 //! This is an itemized markdown list (see also
6 //! issue #3224):
7 //! * Outer
8 //! * Outer
9 //! * Inner
10 //! * Inner with lots of text so that it could
11 //! be reformatted something something
12 //! something lots of text so that it could be
13 //! reformatted something something something
14 //!
15 //! This example shows how to configure fern to
16 //! output really nicely colored logs
17 //! - when the log level is error, the whole line
18 //! is red
19 //! - when the log level is warn, the whole line
20 //! is yellow
21 //! - when the log level is info, the level name
22 //! is green and the rest of the line is white
23 //! - when the log level is debug, the whole line
24 //! is white
25 //! - when the log level is trace, the whole line
26 //! is gray ("bright black")
27 //!
28 //! This is a numbered markdown list (see also
29 //! issue #5416):
30 //! 1. Long long long long long long long long
31 //! long long long long long long long long
32 //! long line
33 //! 2. Another very long long long long long long
34 //! long long long long long long long long
35 //! long line
36 //! 3. Nested list
37 //! 1. Long long long long long long long long
38 //! long long long long long long long long
39 //! line
40 //! 2. Another very long long long long long
41 //! long long long long long long long long
42 //! long line
43 //! 4. Last item
44 //!
45 //! Using the ')' instead of '.' character after
46 //! the number:
47 //! 1) Long long long long long long long long
48 //! long long long long long long long long
49 //! long line
50 //! 2) Another very long long long long long long
51 //! long long long long long long long long
52 //! long line
53 //!
54 //! Deep list that mixes various bullet and number
55 //! formats:
56 //! 1. First level with a long long long long long
57 //! long long long long long long long long
58 //! long long long long line
59 //! 2. First level with another very long long
60 //! long long long long long long long long
61 //! long long long long long line
62 //! * Second level with a long long long long
63 //! long long long long long long long long
64 //! long long long long line
65 //! * Second level with another very long long
66 //! long long long long long long long long
67 //! long long long long line
68 //! 1) Third level with a long long long
69 //! long long long long long long long
70 //! long long long long long long line
71 //! 2) Third level with another very long
72 //! long long long long long long long
73 //! long long long long long long line
74 //! - Forth level with a long long
75 //! long long long long long long
76 //! long long long long long long
77 //! long long line
78 //! - Forth level with another very
79 //! long long long long long long
80 //! long long long long long long
81 //! long long line
82 //! 3) One more item at the third level
83 //! 4) Last item of the third level
84 //! * Last item of second level
85 //! 3. Last item of first level
86
87 // This example shows how to configure fern to
88 // output really nicely colored logs
89 // - when the log level is error, the whole line
90 // is red
91 // - when the log level is warn, the whole line
92 // is yellow
93 // - when the log level is info, the level
94 // name is green and the rest of the line is
95 // white
96 // - when the log level is debug, the whole line
97 // is white
98 // - when the log level is trace, the whole line
99 // is gray ("bright black")
100
101 /// All the parameters ***except for
102 /// `from_theater`*** should be inserted as sent
103 /// by the remote theater, i.e., as passed to
104 /// [`Theater::send`] on the remote actor:
105 /// * `from` is the sending (remote) [`ActorId`],
106 /// as reported by the remote theater by
107 /// theater-specific means
108 /// * `to` is the receiving (local) [`ActorId`],
109 /// as requested by the remote theater
110 /// * `tag` is a tag that identifies the message
111 /// type
112 /// * `msg` is the (serialized) message
113 /// All the parameters ***except for
114 /// `from_theater`*** should be inserted as sent
115 /// by the remote theater, i.e., as passed to
116 /// [`Theater::send`] on the remote actor
117 fn func1() {}
118
119 /// All the parameters ***except for
120 /// `from_theater`*** should be inserted as sent
121 /// by the remote theater, i.e., as passed to
122 /// [`Theater::send`] on the remote actor:
123 /// * `from` is the sending (remote) [`ActorId`],
124 /// as reported by the remote theater by
125 /// theater-specific means
126 /// * `to` is the receiving (local) [`ActorId`],
127 /// as requested by the remote theater
128 /// * `tag` is a tag that identifies the message
129 /// type
130 /// * `msg` is the (serialized) message
131 /// ```
132 /// let x = 42;
133 /// ```
134 fn func2() {}
135
136 /// Look:
137 ///
138 /// ```
139 /// let x = 42;
140 /// ```
141 /// * `from` is the sending (remote) [`ActorId`],
142 /// as reported by the remote theater by
143 /// theater-specific means
144 /// * `to` is the receiving (local) [`ActorId`],
145 /// as requested by the remote theater
146 /// * `tag` is a tag that identifies the message
147 /// type
148 /// * `msg` is the (serialized) message
149 fn func3() {}