summaryrefslogtreecommitdiffstats
path: root/tests/rust/constant_constexpr.rs
blob: c4d2b8cd03102a78b429feab13cb7fcfa822729f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
pub const CONSTANT_I64: i64 = 216;
pub const CONSTANT_FLOAT32: f32 = 312.292;
pub const DELIMITER: char = ':';
pub const LEFTCURLY: char = '{';
#[repr(C)]
struct Foo {
    x: i32,
}

pub const SomeFoo: Foo = Foo { x: 99, };

impl Foo {
    pub const CONSTANT_I64_BODY: i64 = 216;
}