//@ revisions: current next //@ ignore-compare-mode-next-solver (explicit revisions) //@[next] compile-flags: -Znext-solver //@ check-pass trait Trait {} impl Trait for T {} trait Noop { type Assoc: ?Sized; } impl Noop for T { type Assoc = T; } struct NoopNewtype(T::Assoc); fn coerce_newtype(x: &NoopNewtype) -> &NoopNewtype { x } fn main() {}