()
| 333 | |
| 334 | #[test] |
| 335 | fn array_init_no_drop() { |
| 336 | DropChecker::with(|drop_checker| { |
| 337 | let result: Result<[_; 5], ()> = try_array_init(|i| { |
| 338 | if i < 3 { |
| 339 | Ok(drop_checker.new_element()) |
| 340 | } else { |
| 341 | Err(()) |
| 342 | } |
| 343 | }); |
| 344 | assert!(result.is_err()); |
| 345 | }); |
| 346 | } |
| 347 | |
| 348 | #[test] |
| 349 | fn from_iter_no_drop() { |
nothing calls this directly
no test coverage detected