diff --git a/src/lib.rs b/src/lib.rs index bca00135..d2b29786 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -98,7 +98,7 @@ extern crate quickcheck; extern crate test; use std::cmp; -use std::ops::Neg; +use std::ops::{Neg, Mul}; pub use traits::{ Absolute, AbsoluteRotate, @@ -608,7 +608,12 @@ pub fn append_rotation_wrt_center + Copy, /// Builds a rotation matrix from `r`. #[inline(always)] -pub fn to_rot_mat>(r: &R) -> R::Output { +pub fn to_rot_mat(r: &R) -> M + where R: RotationMatrix, + M: Mat + Rotation + Col + Copy, + LV: Mul + Copy, +{ + // FIXME: rust-lang/rust#20413 r.to_rot_mat() }