mirror of
https://github.com/edg-l/edlang.git
synced 2024-11-13 19:48:23 +00:00
14 lines
172 B
Rust
14 lines
172 B
Rust
mod Main {
|
|
pub fn main() -> i64 {
|
|
let mut a: i64 = 0;
|
|
|
|
hello(&mut a);
|
|
|
|
return a;
|
|
}
|
|
|
|
pub fn hello(a: &mut i32) {
|
|
*a = 2;
|
|
}
|
|
}
|