rust/tests/ui/issues/auxiliary/issue-4208-cc.rs
2023-01-11 09:32:08 +00:00

11 lines
185 B
Rust

#![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> {}