summary refs log tree commit diff
path: root/src/test/run-pass/method-attributes.rs
blob: 2301b45f7ddbb80386953d02fca0142d41c1699e (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]
trait frobable {
    #[frob_attr]
    fn frob();
    #[defrob_attr]
    fn defrob();
}

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

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

fn main() { }