1 // Test that a where clause attached to a method allows us to add
2 // additional constraints to a parameter out of scope.
8 struct Bar; // does not implement Eq
11 fn equals(&self, u: &Foo<T>) -> bool where T : Eq {
17 let x = Foo { value: Bar };
19 //~^ ERROR `Bar: Eq` is not satisfied