Function test::make_owned_test
source · pub(crate) fn make_owned_test(test: &&TestDescAndFn) -> TestDescAndFn
🔬This is a nightly-only experimental API. (
test
)Expand description
Clones static values for putting into a dynamic vector, which test_main() needs to hand out ownership of tests to parallel test runners.
This will panic when fed any dynamic tests, because they cannot be cloned.