2012-12-10 19:32:48 -06:00
|
|
|
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
|
|
|
// file at the top-level directory of this distribution and at
|
|
|
|
// http://rust-lang.org/COPYRIGHT.
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
|
|
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
|
|
|
// option. This file may not be copied, modified, or distributed
|
|
|
|
// except according to those terms.
|
|
|
|
|
2012-01-25 18:23:43 -06:00
|
|
|
// pp-exact - Make sure we actually print the attributes
|
|
|
|
|
|
|
|
enum crew_of_enterprise_d {
|
|
|
|
|
|
|
|
#[captain]
|
|
|
|
jean_luc_picard,
|
|
|
|
|
2012-12-13 16:18:47 -06:00
|
|
|
#[oldcommander]
|
2012-01-25 18:23:43 -06:00
|
|
|
william_t_riker,
|
|
|
|
|
|
|
|
#[chief_medical_officer]
|
|
|
|
beverly_crusher,
|
|
|
|
|
|
|
|
#[ships_councellor]
|
|
|
|
deanna_troi,
|
|
|
|
|
2012-12-13 16:18:47 -06:00
|
|
|
#[lieutenant_oldcommander]
|
2012-01-25 18:23:43 -06:00
|
|
|
data,
|
|
|
|
|
|
|
|
#[chief_of_security]
|
|
|
|
worf,
|
|
|
|
|
|
|
|
#[chief_engineer]
|
|
|
|
geordi_la_forge,
|
|
|
|
}
|
|
|
|
|
2012-07-14 00:57:48 -05:00
|
|
|
fn boldly_go(_crew_member: crew_of_enterprise_d, _where: ~str) { }
|
2012-01-25 18:23:43 -06:00
|
|
|
|
2013-02-01 21:43:17 -06:00
|
|
|
pub fn main() { boldly_go(worf, ~"where no one has gone before"); }
|