blob: 7b4c8b01a9e2f49d1c6ea426c4b46f5b9933a0c1 [file] [log] [blame]
#![crate_name="numeric"]
#![crate_type = "lib"]
pub trait Trig<T> {
fn sin(&self) -> T;
}
pub fn sin<T:Trig<R>, R>(theta: &T) -> R { theta.sin() }
pub trait Angle<T>: Trig<T> {}