// revisions: current next //[next] compile-flags: -Znext-solver struct Wrapper(T); trait A: B {} trait B {} fn test<'a>(x: Box>) -> Box> { x //~^ ERROR cannot cast `dyn A` to `dyn B`, trait upcasting coercion is experimental } fn main() {}