18 lines
414 B
Rust
18 lines
414 B
Rust
// pp-exact
|
|
|
|
fn main() {
|
|
let x = 1;
|
|
let y = 2;
|
|
let z = 3;
|
|
let l1 = lambda[copy x]() -> int { x + y };
|
|
let l2 = lambda[copy x; move y]() -> int { x + y };
|
|
let l3 = lambda[move z]() -> int { z };
|
|
|
|
let x = 1;
|
|
let y = 2;
|
|
let z = 3;
|
|
let s1 = sendfn[copy x]() -> int { x + y };
|
|
let s2 = sendfn[copy x; move y]() -> int { x + y };
|
|
let s3 = sendfn[move z]() -> int { z };
|
|
}
|