summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/itemized-blocks/wrap.rs
blob: 4826590ea59ddfe81bd85a9945a0395d88663d6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
// rustfmt-wrap_comments: true
// rustfmt-format_code_in_doc_comments: true
// rustfmt-max_width: 50

//! This is an itemized markdown list (see also
//! issue #3224):
//!  * Outer
//!  * Outer
//!   * Inner
//!   * Inner with lots of text so that it could
//!     be reformatted something something
//!     something lots of text so that it could be
//!     reformatted something something something
//!
//! This example shows how to configure fern to
//! output really nicely colored logs
//! - when the log level is error, the whole line
//!   is red
//! - when the log level is warn, the whole line
//!   is yellow
//! - when the log level is info, the level name
//!   is green and the rest of the line is white
//! - when the log level is debug, the whole line
//!   is white
//! - when the log level is trace, the whole line
//!   is gray ("bright black")
//!
//! This is a numbered markdown list (see also
//! issue #5416):
//! 1. Long long long long long long long long
//!    long long long long long long long long
//!    long line
//! 2. Another very long long long long long long
//!    long long long long long long long long
//!    long line
//! 3. Nested list
//!    1. Long long long long long long long long
//!       long long long long long long long long
//!       line
//!    2. Another very long long long long long
//!       long long long long long long long long
//!       long line
//! 4. Last item
//!
//! Using the ')' instead of '.' character after
//! the number:
//! 1) Long long long long long long long long
//!    long long long long long long long long
//!    long line
//! 2) Another very long long long long long long
//!    long long long long long long long long
//!    long line
//!
//! Deep list that mixes various bullet and number
//! formats:
//! 1. First level with a long long long long long
//!    long long long long long long long long
//!    long long long long line
//! 2. First level with another very long long
//!    long long long long long long long long
//!    long long long long long line
//!     * Second level with a long long long long
//!       long long long long long long long long
//!       long long long long line
//!     * Second level with another very long long
//!       long long long long long long long long
//!       long long long long line
//!         1) Third level with a long long long
//!            long long long long long long long
//!            long long long long long long line
//!         2) Third level with another very long
//!            long long long long long long long
//!            long long long long long long line
//!             - Forth level with a long long
//!               long long long long long long
//!               long long long long long long
//!               long long line
//!             - Forth level with another very
//!               long long long long long long
//!               long long long long long long
//!               long long line
//!         3) One more item at the third level
//!         4) Last item of the third level
//!     * Last item of second level
//! 3. Last item of first level

// This example shows how to configure fern to
// output really nicely colored logs
// - when the log level is error, the whole line
//   is red
//   - when the log level is warn, the whole line
//     is yellow
//     - when the log level is info, the level
//       name is green and the rest of the line is
//       white
//   - when the log level is debug, the whole line
//     is white
//   - when the log level is trace, the whole line
//     is gray ("bright black")

/// All the parameters ***except for
/// `from_theater`*** should be inserted as sent
/// by the remote theater, i.e., as passed to
/// [`Theater::send`] on the remote actor:
///  * `from` is the sending (remote) [`ActorId`],
///    as reported by the remote theater by
///    theater-specific means
///  * `to` is the receiving (local) [`ActorId`],
///    as requested by the remote theater
///  * `tag` is a tag that identifies the message
///    type
///  * `msg` is the (serialized) message
/// All the parameters ***except for
/// `from_theater`*** should be inserted as sent
/// by the remote theater, i.e., as passed to
/// [`Theater::send`] on the remote actor
fn func1() {}

/// All the parameters ***except for
/// `from_theater`*** should be inserted as sent
/// by the remote theater, i.e., as passed to
/// [`Theater::send`] on the remote actor:
///  * `from` is the sending (remote) [`ActorId`],
///    as reported by the remote theater by
///    theater-specific means
///  * `to` is the receiving (local) [`ActorId`],
///    as requested by the remote theater
///  * `tag` is a tag that identifies the message
///    type
///  * `msg` is the (serialized) message
/// ```
/// let x = 42;
/// ```
fn func2() {}

/// Look:
///
/// ```
/// let x = 42;
/// ```
///  * `from` is the sending (remote) [`ActorId`],
///    as reported by the remote theater by
///    theater-specific means
///  * `to` is the receiving (local) [`ActorId`],
///    as requested by the remote theater
///  * `tag` is a tag that identifies the message
///    type
///  * `msg` is the (serialized) message
fn func3() {}