Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
15
tests/ui/for-loop-while/while-loop-constraints-2.rs
Normal file
15
tests/ui/for-loop-while/while-loop-constraints-2.rs
Normal file
|
@ -0,0 +1,15 @@
|
|||
// run-pass
|
||||
#![allow(unused_assignments)]
|
||||
#![allow(unused_variables)]
|
||||
|
||||
pub fn main() {
|
||||
let mut y: isize = 42;
|
||||
let mut z: isize = 42;
|
||||
let mut x: isize;
|
||||
while z < 50 {
|
||||
z += 1;
|
||||
while false { x = y; y = z; }
|
||||
println!("{}", y);
|
||||
}
|
||||
assert!((y == 42 && z == 50));
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue