2013-07-16 03:27:54 -05: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.
|
|
|
|
|
|
|
|
enum Flopsy {
|
|
|
|
Bunny = 2
|
|
|
|
}
|
|
|
|
|
2014-11-06 02:05:53 -06:00
|
|
|
const BAR:uint = Flopsy::Bunny as uint;
|
2014-10-06 23:16:35 -05:00
|
|
|
const BAR2:uint = BAR;
|
2013-07-16 03:27:54 -05:00
|
|
|
|
2013-09-25 02:43:37 -05:00
|
|
|
pub fn main() {
|
2014-12-19 20:20:51 -06:00
|
|
|
let _v = [0i; Flopsy::Bunny as uint];
|
|
|
|
let _v = [0i; BAR];
|
|
|
|
let _v = [0i; BAR2];
|
2014-10-06 23:16:35 -05:00
|
|
|
const BAR3:uint = BAR2;
|
2014-12-19 20:20:51 -06:00
|
|
|
let _v = [0i; BAR3];
|
2013-08-17 10:37:42 -05:00
|
|
|
}
|