]> git.lizzy.rs Git - rust.git/blob - src/test/run-pass/method-attributes.rs
Merge remote-tracking branch 'Havvy/master' into Havvy-pull-req
[rust.git] / src / test / run-pass / method-attributes.rs
1 // pp-exact - Make sure we print all the attributes
2
3 #[frobable]
4 iface frobable {
5     #[frob_attr]
6     fn frob();
7     #[defrob_attr]
8     fn defrob();
9 }
10
11 #[int_frobable]
12 impl frobable of frobable for int {
13     #[frob_attr1]
14     fn frob() {
15         #[frob_attr2];
16     }
17
18     #[defrob_attr1]
19     fn defrob() {
20         #[defrob_attr2];
21     }
22 }
23
24 fn main() { }