error: cannot implement trait on type alias impl trait --> $DIR/issue-84660-unsoundness.rs:16:21 | LL | impl Trait for Out { | ^^^ | note: type alias impl trait defined here --> $DIR/issue-84660-unsoundness.rs:8:12 | LL | type Bar = impl Foo; | ^^^^^^^^ error: aborting due to previous error