// Check that we enforce WF conditions also for return types in fn items. #![feature(rustc_attrs)] #![allow(dead_code)] struct MustBeCopy { t: T, } fn bar() -> MustBeCopy //~ ERROR E0277 //~^ ERROR mismatched types { } fn main() {}