2019-07-03 06:30:28 +09:00
|
|
|
//@ build-pass (FIXME(62277): could be check-pass?)
|
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
|
|
|
|
2019-06-08 11:36:43 +03:00
|
|
|
#![allow(non_camel_case_types)]
|
|
|
|
#![feature(rustc_attrs)]
|
2012-01-25 16:23:43 -08:00
|
|
|
|
|
|
|
enum crew_of_enterprise_d {
|
|
|
|
|
2019-06-08 11:36:43 +03:00
|
|
|
#[rustc_dummy]
|
2012-01-25 16:23:43 -08:00
|
|
|
jean_luc_picard,
|
|
|
|
|
2019-06-08 11:36:43 +03:00
|
|
|
#[rustc_dummy]
|
2012-01-25 16:23:43 -08:00
|
|
|
william_t_riker,
|
|
|
|
|
2019-06-08 11:36:43 +03:00
|
|
|
#[rustc_dummy]
|
2012-01-25 16:23:43 -08:00
|
|
|
beverly_crusher,
|
|
|
|
|
2019-06-08 11:36:43 +03:00
|
|
|
#[rustc_dummy]
|
2012-01-25 16:23:43 -08:00
|
|
|
deanna_troi,
|
|
|
|
|
2019-06-08 11:36:43 +03:00
|
|
|
#[rustc_dummy]
|
2012-01-25 16:23:43 -08:00
|
|
|
data,
|
|
|
|
|
2019-06-08 11:36:43 +03:00
|
|
|
#[rustc_dummy]
|
2012-01-25 16:23:43 -08:00
|
|
|
worf,
|
|
|
|
|
2019-06-08 11:36:43 +03:00
|
|
|
#[rustc_dummy]
|
2012-01-25 16:23:43 -08:00
|
|
|
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
|
|
|
|
2019-06-08 11:36:43 +03:00
|
|
|
fn main() {
|
2014-11-06 00:05:53 -08:00
|
|
|
boldly_go(crew_of_enterprise_d::worf,
|
|
|
|
"where no one has gone before".to_string());
|
|
|
|
}
|