rust/src/test/ui/wf/wf-fn-where-clause.rs
2018-12-25 21:08:33 -07:00

18 lines
243 B
Rust

// 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() { }