1 // rustfmt-wrap_comments: true
2 // Test attributes and doc comments are preserved.
19 fn foo(&mut self) -> isize {
43 // Another comment that needs rewrite because it's tooooooooooooooooooooooooooooooo loooooooooooong.
48 // We want spaces around `=`
49 #[cfg(feature="nightly")]
50 fn f5(self) -> Monkey {}
55 # [ derive ( Clone , PartialEq , Debug , Deserialize , Serialize ) ]
61 /// Default path (*nix)
62 #[cfg(all(unix, not(target_os = "macos"), not(target_os = "ios"), not(target_os = "android")))]
64 #[cfg(target_os = "freertos")]
66 'a' | 'A' => GpioPort { port_address: GPIO_A },
67 'b' | 'B' => GpioPort { port_address: GPIO_B },
71 #[cfg_attr(not(target_os = "freertos"), allow(unused_variables))]
77 #[should_panic(expected = "(")]
78 #[should_panic(expected = /* ( */ "(")]
79 #[should_panic(/* ((((( */expected /* ((((( */= /* ((((( */ "("/* ((((( */)]
82 (((((((((()(((((((( */
90 #[allow(unreachable_code)] // https://github.com/rust-lang/rust/issues/43336
93 #[allow(unreachable_code)]
94 // https://github.com/rust-lang/rust/issues/43336
98 // Formatting inner attributes
99 fn inner_attributes() {
100 #![ this_is_an_inner_attribute ( foo ) ]
105 impl InnerAttributes() {
106 #![ this_is_an_inner_attribute ( foo ) ]
111 mod InnerAttributes {
112 #![ this_is_an_inner_attribute ( foo ) ]