blob: dfb39743352fce1893413c96260f6cbe3c8cfe79 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// ignore-x86
// ^ due to stderr output differences
struct Bar;
impl Bar {
fn hash<T>(&self, _: T) {}
}
#[derive(Hash)]
struct Foo(Bar);
//~^ error: `Bar: std::hash::Hash` is not satisfied
fn main() {}
|