// Check that we enforce WF conditions also for types in fns. trait Object { } struct MustBeCopy { t: T } struct Bar { // needs T: Copy x: dyn Object> //~ ERROR E0277 } fn main() { }