]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-21160.rs
Rollup merge of #92942 - Xaeroxe:raw_arg, r=dtolnay
[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() {}