]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/for-loop-while/while-let.rs
3 use std
::collections
::BinaryHeap
;
5 fn make_pq() -> BinaryHeap
<isize> {
6 BinaryHeap
::from(vec
![1,2,3])
10 let mut pq
= make_pq();
12 while let Some(x
) = pq
.pop() {
19 'a
: while let Some(x
) = pq
.pop() {
29 'a2
: while let Some(x
) = pq
.pop() {
37 let mut pq1
= make_pq();
39 while let Some(x
) = pq1
.pop() {
40 let mut pq2
= make_pq();
41 while let Some(y
) = pq2
.pop() {
45 assert_eq
!(sum
, 6 + 12 + 18);