rust/tests/idem/attrib.rs
2015-04-29 15:03:15 +12:00

19 lines
298 B
Rust

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