()
| 70 | |
| 71 | #[test] |
| 72 | fn forbidden_in_nested() { |
| 73 | assert_eq!(check_and_reset(), false); |
| 74 | assert_no_alloc(|| { |
| 75 | assert_no_alloc(|| { |
| 76 | do_alloc(); |
| 77 | }); |
| 78 | }); |
| 79 | assert_eq!(check_and_reset(), true); |
| 80 | } |
| 81 | |
| 82 | #[test] |
| 83 | fn forbidden_after_nested() { |
nothing calls this directly
no test coverage detected