]> git.lizzy.rs Git - rust.git/blob - src/test/run-pass/variant-attributes.rs
Merge pull request #1669 from graydon/inno-setup
[rust.git] / src / test / run-pass / variant-attributes.rs
1 // pp-exact - Make sure we actually print the attributes
2
3 enum crew_of_enterprise_d {
4
5     #[captain]
6     jean_luc_picard,
7
8     #[commander]
9     william_t_riker,
10
11     #[chief_medical_officer]
12     beverly_crusher,
13
14     #[ships_councellor]
15     deanna_troi,
16
17     #[lieutenant_commander]
18     data,
19
20     #[chief_of_security]
21     worf,
22
23     #[chief_engineer]
24     geordi_la_forge,
25 }
26
27 fn boldly_go(_crew_member: crew_of_enterprise_d, _where: str) { }
28
29 fn main() { boldly_go(worf, "where no one has gone before"); }