]> git.lizzy.rs Git - rust.git/blob - tests/target/issue-3055/original.rs
Fix static async closure qualifier order
[rust.git] / tests / target / issue-3055 / original.rs
1 // rustfmt-wrap_comments: true
2 // rustfmt-format_code_in_doc_comments: true
3
4 /// Vestibulum elit nibh, rhoncus non, euismod sit amet, pretium eu, enim. Nunc
5 /// commodo ultricies dui.
6 ///
7 /// Should not format with text attribute
8 /// ```text
9 ///           .--------------.
10 ///           |              v
11 /// Park <- Idle -> Poll -> Probe -> Download -> Install -> Reboot
12 ///           ^      ^        '          '          '
13 ///           '      '        '          '          '
14 ///           '      `--------'          '          '
15 ///           `---------------'          '          '
16 ///           `--------------------------'          '
17 ///           `-------------------------------------'
18 /// ```
19 ///
20 /// Should not format with ignore attribute
21 /// ```text
22 ///           .--------------.
23 ///           |              v
24 /// Park <- Idle -> Poll -> Probe -> Download -> Install -> Reboot
25 ///           ^      ^        '          '          '
26 ///           '      '        '          '          '
27 ///           '      `--------'          '          '
28 ///           `---------------'          '          '
29 ///           `--------------------------'          '
30 ///           `-------------------------------------'
31 /// ```
32 ///
33 /// Should format with rust attribute
34 /// ```rust
35 /// let x = 42;
36 /// ```
37 ///
38 /// Should format with no attribute as it defaults to rust
39 /// ```
40 /// let x = 42;
41 /// ```
42 fn func() {}