diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-21160.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-21160.rs b/src/test/ui/issues/issue-21160.rs new file mode 100644 index 000000000..10136ba11 --- /dev/null +++ b/src/test/ui/issues/issue-21160.rs @@ -0,0 +1,11 @@ +struct Bar; + +impl Bar { + fn hash<T>(&self, _: T) {} +} + +#[derive(Hash)] +struct Foo(Bar); +//~^ error: `Bar: Hash` is not satisfied + +fn main() {} |