rust/src/test/ui/issues/issue-19081.rs
2019-07-03 06:30:28 +09:00

14 lines
247 B
Rust

// 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() {}