1 // rustfmt-wrap_comments: true
2 // Test attributes and doc comments are preserved.
16 fn foo(&mut self) -> isize {}
36 // Another comment that needs rewrite because it's
37 // tooooooooooooooooooooooooooooooo loooooooooooong.
41 // We want spaces around `=`
42 #[cfg(feature = "nightly")]
43 fn f5(self) -> Monkey {}
48 #[derive(Clone, PartialEq, Debug, Deserialize, Serialize)]
54 /// Default path (*nix)
55 #[cfg(all(unix, not(target_os = "macos"), not(target_os = "ios"), not(target_os = "android")))]
57 #[cfg(target_os = "freertos")]
59 'a' | 'A' => GpioPort {
62 'b' | 'B' => GpioPort {
68 #[cfg_attr(not(target_os = "freertos"), allow(unused_variables))]
74 #[should_panic(expected = "(")]
75 #[should_panic(expected = /* ( */ "(")]
76 #[should_panic(/* ((((( */expected /* ((((( */= /* ((((( */ "("/* ((((( */)]
79 (((((((((()(((((((( */
87 #[allow(unreachable_code)] // https://github.com/rust-lang/rust/issues/43336
90 #[allow(unreachable_code)]
91 // https://github.com/rust-lang/rust/issues/43336
95 // Formatting inner attributes
96 fn inner_attributes() {
97 #![this_is_an_inner_attribute(foo)]
102 impl InnerAttributes() {
103 #![this_is_an_inner_attribute(foo)]
108 mod InnerAttributes {
109 #![this_is_an_inner_attribute(foo)]