From 27bfe381d981a0cfc197290887e097560a992f06 Mon Sep 17 00:00:00 2001 From: Eduard Bopp Date: Tue, 3 Feb 2015 19:17:15 +0100 Subject: [PATCH] Workaround internal compiler error The associated type bound here was not parsed correctly. This is likely due to the ICE described in rust-lang/rust#20413. --- src/lib.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 274a0ca7..b01c089a 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() }