2015-11-09 19:03:01 +00:00
|
|
|
// rustfmt-wrap_comments: true
|
2015-07-17 21:10:15 +00:00
|
|
|
// Test attributes and doc comments are preserved.
|
|
|
|
|
|
|
|
/// Blah blah blah.
|
|
|
|
/// Blah blah blah.
|
|
|
|
/// Blah blah blah.
|
|
|
|
/// Blah blah blah.
|
|
|
|
|
|
|
|
/// Blah blah blah.
|
|
|
|
impl Bar {
|
|
|
|
/// Blah blah blooo.
|
|
|
|
/// Blah blah blooo.
|
|
|
|
/// Blah blah blooo.
|
|
|
|
/// Blah blah blooo.
|
|
|
|
#[an_attribute]
|
|
|
|
fn foo(&mut self) -> isize {
|
|
|
|
}
|
|
|
|
|
|
|
|
/// Blah blah bing.
|
|
|
|
/// Blah blah bing.
|
|
|
|
/// Blah blah bing.
|
|
|
|
|
|
|
|
|
|
|
|
/// Blah blah bing.
|
|
|
|
/// Blah blah bing.
|
|
|
|
/// Blah blah bing.
|
|
|
|
pub fn f2(self) {
|
|
|
|
(foo, bar)
|
|
|
|
}
|
|
|
|
|
|
|
|
#[another_attribute]
|
|
|
|
fn f3(self) -> Dog {
|
|
|
|
}
|
|
|
|
|
|
|
|
/// Blah blah bing.
|
|
|
|
|
|
|
|
#[attrib1]
|
|
|
|
/// Blah blah bing.
|
|
|
|
#[attrib2]
|
|
|
|
// Another comment that needs rewrite because it's tooooooooooooooooooooooooooooooo loooooooooooong.
|
|
|
|
/// Blah blah bing.
|
|
|
|
fn f4(self) -> Cat {
|
|
|
|
}
|
2017-06-05 14:21:39 +00:00
|
|
|
|
|
|
|
// We want spaces around `=`
|
|
|
|
#[cfg(feature="nightly")]
|
|
|
|
fn f5(self) -> Monkey {}
|
|
|
|
}
|
|
|
|
|
|
|
|
// #984
|
|
|
|
struct Foo {
|
|
|
|
# [ derive ( Clone , PartialEq , Debug , Deserialize , Serialize ) ]
|
|
|
|
foo: usize,
|
2015-07-17 21:10:15 +00:00
|
|
|
}
|