2015-08-07 13:31:42 -04:00
|
|
|
// Check that we enforce WF conditions also for where clauses in fn items.
|
|
|
|
|
2018-10-31 00:18:11 +01:00
|
|
|
|
2015-08-07 13:31:42 -04:00
|
|
|
#![allow(dead_code)]
|
|
|
|
|
|
|
|
trait MustBeCopy<T:Copy> {
|
|
|
|
}
|
|
|
|
|
2020-01-29 16:55:37 -08:00
|
|
|
fn bar<T,U>()
|
|
|
|
where T: MustBeCopy<U> //~ ERROR E0277
|
2015-08-07 13:31:42 -04:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2018-10-31 00:18:11 +01:00
|
|
|
|
2015-12-15 04:31:58 -05:00
|
|
|
fn main() { }
|