Trait cargo_test_support::ChannelChanger
source · pub trait ChannelChanger {
// Required method
fn masquerade_as_nightly_cargo(self, _reasons: &[&str]) -> Self;
}
Expand description
Enable nightly features for testing
Required Methods§
sourcefn masquerade_as_nightly_cargo(self, _reasons: &[&str]) -> Self
fn masquerade_as_nightly_cargo(self, _reasons: &[&str]) -> Self
The list of reasons should be why nightly cargo is needed. If it is
because of an unstable feature put the name of the feature as the reason,
e.g. &["print-im-a-teapot"]
.
Object Safety§
This trait is not object safe.