summary refs log tree commit diff
path: root/src/test/ui/issues/issue-21160.rs
blob: 46733566cf383e1f503ede63effa69502bf8074e (plain)
1
2
3
4
5
6
7
8
9
10
11
struct Bar;

impl Bar {
    fn hash<T>(&self, _: T) {}
}

#[derive(Hash)]
struct Foo(Bar);
//~^ error: `Bar: std::hash::Hash` is not satisfied

fn main() {}