edlang/simple.ed
2023-05-27 17:14:48 +02:00

19 lines
196 B
Plaintext

struct Hello {
x: i32,
y: i32,
}
fn test(x: Hello) {
return;
}
fn works(x: i32) -> i32 {
return x * 4;
}
fn main() -> i32 {
let y = 2;
let z = y;
return works(z);
}