()
| 47 | |
| 48 | #[test] |
| 49 | fn test() { |
| 50 | let mut list = Vector::new(); |
| 51 | list.push(Closure::bind(&invoke, ("hello", 42))); |
| 52 | list.push(Closure::bind(&invoke, ("world!", 32))); |
| 53 | for closure in list.into_iter() { |
| 54 | closure.invoke(); |
| 55 | } |
| 56 | |
| 57 | // If we get here, it didn't crash. That's a win! |
| 58 | assert_eq!(true, true); |
| 59 | } |
| 60 | |
| 61 | #[test] |
| 62 | fn test2() { |