summaryrefslogtreecommitdiffstats
path: root/tests/ui/wf/wf-in-fn-where-clause.rs
blob: e55295a3b25785762186abf32bb22c7aa3638d62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Check that we enforce WF conditions also for where clauses in fn items.


#![allow(dead_code)]

trait MustBeCopy<T:Copy> {
}

fn bar<T,U>()
    where T: MustBeCopy<U> //~ ERROR E0277
{
}


fn main() { }