()
| 49 | |
| 50 | #[test] |
| 51 | fn ok_nested() { |
| 52 | assert_eq!(check_and_reset(), false); |
| 53 | assert_no_alloc(|| { |
| 54 | assert_no_alloc(|| { |
| 55 | }); |
| 56 | }); |
| 57 | |
| 58 | do_alloc(); |
| 59 | assert_eq!(check_and_reset(), false); |
| 60 | } |
| 61 | |
| 62 | #[test] |
| 63 | fn forbidden_simple() { |
nothing calls this directly
no test coverage detected