9 lines
263 B
Rust
9 lines
263 B
Rust
// expect: run
|
|
// result: 42
|
|
// phase: 6
|
|
// spec: docs/spec/15-source-language.md §5/§10
|
|
module test.store_modes
|
|
struct Pair { a: u64 }
|
|
struct Box { pair: Pair, data: [u64; 2] }
|
|
fn main() -> u64 effects [] { let x = Pair { a: 0u64 }; x.a = 42u64; return x.a; }
|