We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Code:
use std::rand; pub trait Nothing { } impl<T: rand::Rand> Nothing for T { } impl<T: rand::Rand> Nothing for ~[T] { }
Output:
error: conflicting implementations for trait `lib::Nothing`
Expected: Compile normally, as there is no impl Rand for ~[T].
impl Rand for ~[T]