Trait not implemented for (thing that implements trait)
问题 So, Rust is trying to tell me a fib, I think, but maybe I'm just out of my mind... fn get_random<T, R>(range: Range<T>, rng: &mut R) -> T where T: SampleRange + PartialOrd, R: Rng { range.ind_sample(&mut rng) } The where clause there should indicate that R definitely implements Rng, otherwise... Well, come on, right? But when I try to compile this, it swears up and down that rng does not implement rand::Rng. What on earth? rustc 1.0.0-nightly (cfea8ec41 2015-03-10) (built 2015-03-11) (in case