Fix missing trait bounds when the "arbitrary" feature is enabled.

This commit is contained in:
Sébastien Crozet 2016-01-10 15:39:54 +01:00
parent 5a058f0c76
commit 91c4b58bbb
1 changed files with 1 additions and 1 deletions

View File

@ -753,7 +753,7 @@ macro_rules! dmat_impl(
} }
#[cfg(feature="arbitrary")] #[cfg(feature="arbitrary")]
impl<N: Arbitrary> Arbitrary for $dmat<N> { impl<N: Copy + Zero + Arbitrary> Arbitrary for $dmat<N> {
fn arbitrary<G: Gen>(g: &mut G) -> $dmat<N> { fn arbitrary<G: Gen>(g: &mut G) -> $dmat<N> {
$dmat::from_fn( $dmat::from_fn(
Arbitrary::arbitrary(g), Arbitrary::arbitrary(g), Arbitrary::arbitrary(g), Arbitrary::arbitrary(g),