Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
9
tests/ui/for-loop-while/for-destruct.rs
Normal file
9
tests/ui/for-loop-while/for-destruct.rs
Normal file
|
@ -0,0 +1,9 @@
|
|||
// run-pass
|
||||
|
||||
struct Pair { x: isize, y: isize }
|
||||
|
||||
pub fn main() {
|
||||
for elt in &(vec![Pair {x: 10, y: 20}, Pair {x: 30, y: 0}]) {
|
||||
assert_eq!(elt.x + elt.y, 30);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue