Files
rust/src/test/run-pass/methods/method-attributes.rs

32 lines
506 B
Rust
Raw Normal View History

// run-pass
#![allow(unused_attributes)]
#![allow(non_camel_case_types)]
// pp-exact - Make sure we print all the attributes
// pretty-expanded FIXME #23616
#![feature(custom_attribute)]
#[frobable]
trait frobable {
#[frob_attr]
fn frob(&self);
#[defrob_attr]
fn defrob(&self);
}
#[int_frobable]
impl frobable for isize {
#[frob_attr1]
fn frob(&self) {
2014-04-04 13:45:24 -07:00
#![frob_attr2]
}
#[defrob_attr1]
fn defrob(&self) {
2014-04-04 13:45:24 -07:00
#![defrob_attr2]
}
}
pub fn main() { }