blob: 5fd567bd32d049d8d6feff2359ea37aafe699186 [file] [log] [blame]
// Test that we check where-clauses on fn items.
#![allow(dead_code)]
trait ExtraCopy<T:Copy> { }
fn foo<T,U>() where T: ExtraCopy<U> //~ ERROR E0277
{
}
fn bar() where Vec<dyn Copy>:, {}
//~^ ERROR E0277
//~| ERROR E0038
fn main() { }