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