()
| 417 | main: () -> i32 { |
| 418 | bag: bags.Bag = { .. } |
| 419 | bag.count = 3 |
| 420 | bag.items[0] = 20 |
| 421 | bag.items[1] = 15 |
| 422 | bag.items[2] = 7 |
| 423 | return bags.total_of<bags.Bag>(&bag) |
| 424 | } |
| 425 | "#; |
| 426 | let closure = pipeline |
| 427 | .compile_program_closure("user", primary) |
| 428 | .expect("closure compile failed"); |
| 429 | |
| 430 | let mut modules: Vec<(&str, &AssembledOutput)> = cached_stdlib_objs() |
| 431 | .iter() |
| 432 | .map(|(n, o)| (n.as_str(), o)) |
| 433 | .collect(); |
| 434 | for (name, obj) in &closure { |
| 435 | modules.push((name.as_str(), obj)); |
| 436 | } |
nothing calls this directly
no test coverage detected