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)] foo: usize,
53 /// Default path (*nix)
54 #[cfg(all(unix, not(target_os = "macos"), not(target_os = "ios"), not(target_os = "android")))]
56 #[cfg(target_os = "freertos")]
58 'a' | 'A' => GpioPort {
61 'b' | 'B' => GpioPort {
67 #[cfg_attr(not(target_os = "freertos"), allow(unused_variables))]
73 #[should_panic(expected = "(")]
74 #[should_panic(expected = /* ( */ "(")]
75 #[should_panic(/* ((((( */expected /* ((((( */= /* ((((( */ "("/* ((((( */)]
78 (((((((((()(((((((( */
86 #[allow(unreachable_code)] // https://github.com/rust-lang/rust/issues/43336
89 #[allow(unreachable_code)]
90 // https://github.com/rust-lang/rust/issues/43336
94 // Formatting inner attributes
95 fn inner_attributes() {
96 #![this_is_an_inner_attribute(foo)]
101 impl InnerAttributes() {
102 #![this_is_an_inner_attribute(foo)]
107 mod InnerAttributes {
108 #![this_is_an_inner_attribute(foo)]