pub fn expect_errors<R>(test: impl FnOnce() -> R) -> (R, Vec<ValidationRecord>)Expand description
Runs test, which causes validation errors on purpose, and returns the records it logged
instead of reporting them. The caller must hold the GPU turn.