// Test that we check where-clauses on fn items. #![allow(dead_code)] trait ExtraCopy { } fn foo() where T: ExtraCopy //~ ERROR E0277 { } fn bar() where Vec:, {} //~^ ERROR E0277 //~| ERROR E0038 struct Vec { t: T, } fn main() { }