]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-21160.rs
Auto merge of #87150 - rusticstuff:simplify_wrapping_neg, r=m-ou-se
[rust.git] / src / test / ui / issues / issue-21160.rs
1 struct Bar;
2
3 impl Bar {
4     fn hash<T>(&self, _: T) {}
5 }
6
7 #[derive(Hash)]
8 struct Foo(Bar);
9 //~^ error: `Bar: Hash` is not satisfied
10
11 fn main() {}