blob: fbfe4c6f839117a6063d02e4460845af14435de2 [file] [log] [blame]
// check-pass
pub trait Hasher {
type State;
fn hash<T: Hash<
<Self as Hasher>::State
>>(&self, value: &T) -> u64;
}
pub trait Hash<S> {
fn hash(&self, state: &mut S);
}
fn main() {}