summary refs log tree commit diff
path: root/src/test/run-pass/method-attributes.rs
blob: 32230dfca028506d8b290cb3e9d533ce6827d329 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// pp-exact - Make sure we print all the attributes

#[frobable]
iface frobable {
    #[frob_attr]
    fn frob();
    #[defrob_attr]
    fn defrob();
}

#[int_frobable]
impl frobable for int {
    #[frob_attr1]
    fn frob() {
        #[frob_attr2];
    }

    #[defrob_attr1]
    fn defrob() {
        #[defrob_attr2];
    }
}

fn main() { }