2013-03-27 11:58:28 -05:00
|
|
|
// Copyright 2013 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.
|
|
|
|
|
2014-12-30 22:32:49 -06:00
|
|
|
#[derive(Show)]
|
2013-03-07 20:45:22 -06:00
|
|
|
enum Numbers {
|
|
|
|
Three
|
|
|
|
}
|
|
|
|
|
2013-03-27 11:58:28 -05:00
|
|
|
pub fn main() {
|
2014-04-21 16:58:52 -05:00
|
|
|
println!("{}", 1i);
|
|
|
|
println!("{}", 2.0f64);
|
2014-11-06 02:05:53 -06:00
|
|
|
println!("{}", Numbers::Three);
|
2014-10-14 20:07:11 -05:00
|
|
|
println!("{}", vec!(4i));
|
2013-03-07 20:45:22 -06:00
|
|
|
}
|