rust/tests/idem/attrib.rs

19 lines
298 B
Rust
Raw Normal View History

// Test attributes and doc comments are preserved.
/// Blah blah blah.
impl Bar {
/// Blah blah blooo.
#[an_attribute]
2015-04-28 22:00:58 -05:00
fn foo(&mut self) -> isize {
}
/// Blah blah bing.
pub fn f2(self) {
(foo, bar)
}
#[another_attribute]
fn f3(self) -> Dog {
}
}