summary refs log tree commit diff
path: root/src/test/ui/issues/issue-21160.rs
blob: a13b7783370a82406a2382b337584870671eea62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// FIXME: missing sysroot spans (#53081)
// ignore-i586-unknown-linux-gnu
// ignore-i586-unknown-linux-musl
// ignore-i686-unknown-linux-musl
struct Bar;

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

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

fn main() {}