// Test that we check where-clauses on inherent impl methods. #![feature(associated_type_defaults)] #![allow(dead_code)] trait ExtraCopy { } struct Foo(T,U); impl Foo { fn foo(self) where T: ExtraCopy //~ ERROR E0277 {} } fn main() { }