2015-08-07 12:31:42 -05:00
|
|
|
// Test that we check where-clauses on fn items.
|
|
|
|
|
2018-10-30 18:18:11 -05:00
|
|
|
|
2015-08-07 12:31:42 -05:00
|
|
|
#![allow(dead_code)]
|
|
|
|
|
|
|
|
trait ExtraCopy<T:Copy> { }
|
|
|
|
|
2015-12-15 03:31:58 -06:00
|
|
|
fn foo<T,U>() where T: ExtraCopy<U> //~ ERROR E0277
|
2015-08-07 12:31:42 -05:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2018-08-25 16:28:23 -05:00
|
|
|
fn bar() where Vec<dyn Copy>:, {}
|
|
|
|
//~^ ERROR E0277
|
|
|
|
//~| ERROR E0038
|
|
|
|
|
2018-10-30 18:18:11 -05:00
|
|
|
|
2015-12-15 03:31:58 -06:00
|
|
|
fn main() { }
|