2024-02-16 20:02:50 +00:00
|
|
|
//@ run-pass
|
2018-09-25 23:51:35 +02:00
|
|
|
#![allow(dead_code)]
|
2018-08-31 15:02:01 +02:00
|
|
|
#![allow(non_upper_case_globals)]
|
2015-03-22 13:13:15 -07:00
|
|
|
|
2013-05-30 17:08:49 -07:00
|
|
|
enum Foo {
|
|
|
|
|
IntVal(i32),
|
|
|
|
|
Int64Val(i64)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
struct Bar {
|
|
|
|
|
i: i32,
|
|
|
|
|
v: Foo
|
|
|
|
|
}
|
|
|
|
|
|
2014-11-06 00:05:53 -08:00
|
|
|
static bar: Bar = Bar { i: 0, v: Foo::IntVal(0) };
|
2013-05-30 17:08:49 -07:00
|
|
|
|
2013-09-25 00:43:37 -07:00
|
|
|
pub fn main() {}
|