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