2018-09-14 12:20:28 +02:00
|
|
|
#![allow(unused_attributes)]
|
|
|
|
#![allow(non_camel_case_types)]
|
|
|
|
#![allow(dead_code)]
|
2012-01-25 16:23:43 -08:00
|
|
|
// pp-exact - Make sure we actually print the attributes
|
2015-03-22 13:13:15 -07:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2015-02-14 16:15:43 +05:30
|
|
|
#![feature(custom_attribute)]
|
2012-01-25 16:23:43 -08:00
|
|
|
|
|
|
|
enum crew_of_enterprise_d {
|
|
|
|
|
|
|
|
#[captain]
|
|
|
|
jean_luc_picard,
|
|
|
|
|
2012-12-13 14:18:47 -08:00
|
|
|
#[oldcommander]
|
2012-01-25 16:23:43 -08:00
|
|
|
william_t_riker,
|
|
|
|
|
|
|
|
#[chief_medical_officer]
|
|
|
|
beverly_crusher,
|
|
|
|
|
|
|
|
#[ships_councellor]
|
|
|
|
deanna_troi,
|
|
|
|
|
2012-12-13 14:18:47 -08:00
|
|
|
#[lieutenant_oldcommander]
|
2012-01-25 16:23:43 -08:00
|
|
|
data,
|
|
|
|
|
|
|
|
#[chief_of_security]
|
|
|
|
worf,
|
|
|
|
|
|
|
|
#[chief_engineer]
|
|
|
|
geordi_la_forge,
|
|
|
|
}
|
|
|
|
|
2014-05-22 16:57:53 -07:00
|
|
|
fn boldly_go(_crew_member: crew_of_enterprise_d, _where: String) { }
|
2012-01-25 16:23:43 -08:00
|
|
|
|
2014-11-06 00:05:53 -08:00
|
|
|
pub fn main() {
|
|
|
|
boldly_go(crew_of_enterprise_d::worf,
|
|
|
|
"where no one has gone before".to_string());
|
|
|
|
}
|