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