blob: 10136ba11aa5c583ef471ac7ed45c5d1ec2af02f [file] [log] [blame] [edit]
struct Bar;
impl Bar {
fn hash<T>(&self, _: T) {}
}
#[derive(Hash)]
struct Foo(Bar);
//~^ error: `Bar: Hash` is not satisfied
fn main() {}