parent
d174d917e2
commit
dff4986f9e
4
src/test/run-pass/unique-decl-move-temp.rs
Normal file
4
src/test/run-pass/unique-decl-move-temp.rs
Normal file
@ -0,0 +1,4 @@
|
||||
fn main() {
|
||||
let i <- ~100;
|
||||
assert *i == 100;
|
||||
}
|
5
src/test/run-pass/unique-decl-move.rs
Normal file
5
src/test/run-pass/unique-decl-move.rs
Normal file
@ -0,0 +1,5 @@
|
||||
fn main() {
|
||||
let i = ~100;
|
||||
let j <- i;
|
||||
assert *j == 100;
|
||||
}
|
8
src/test/run-pass/unique-fn-arg-move.rs
Normal file
8
src/test/run-pass/unique-fn-arg-move.rs
Normal file
@ -0,0 +1,8 @@
|
||||
fn f(-i: ~int) {
|
||||
assert *i == 100;
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let i = ~100;
|
||||
f(i);
|
||||
}
|
6
src/test/run-pass/unique-move-drop.rs
Normal file
6
src/test/run-pass/unique-move-drop.rs
Normal file
@ -0,0 +1,6 @@
|
||||
fn main() {
|
||||
let i = ~100;
|
||||
let j = ~200;
|
||||
let j <- i;
|
||||
assert *j == 100;
|
||||
}
|
5
src/test/run-pass/unique-move-temp.rs
Normal file
5
src/test/run-pass/unique-move-temp.rs
Normal file
@ -0,0 +1,5 @@
|
||||
fn main() {
|
||||
let i;
|
||||
i <- ~100;
|
||||
assert *i == 100;
|
||||
}
|
6
src/test/run-pass/unique-move.rs
Normal file
6
src/test/run-pass/unique-move.rs
Normal file
@ -0,0 +1,6 @@
|
||||
fn main() {
|
||||
let i = ~100;
|
||||
let j;
|
||||
j <- i;
|
||||
assert *j == 100;
|
||||
}
|
Loading…
Reference in New Issue
Block a user