//@ known-bug: #115435 //@ edition:2021 //@ compile-flags: -Copt-level=0 trait MyTrait { type Target: ?Sized; } impl MyTrait for A { type Target = A; } fn main() { bug_run::>(); } fn bug_run() where ::Target: Sized, { bug::(); } fn bug() { std::mem::size_of::(); }