15 lines
210 B
Rust
15 lines
210 B
Rust
// 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() {}
|