blob: 0948cd3271b1c04ef834b6652d4c232949166b1b [file] [log] [blame]
// build-pass (FIXME(62277): could be 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() {}