Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of rust-lang#77663 - HeroicKatora:regression-tests-27675…
…-object-safe, r=Aaron1011 Add compile fail test for issue 27675 A recently merged PR (rust-lang#73905) strengthened the checks on bounds of associated items. This rejects the attack path of rust-lang#27675 which consisted of constructing a `dyn Trait<Item=T>` where `T` would not fulfill the bounds required on `Item` of the `Trait` behind the dyn object. This regression test, extracted from [the weaponized instance](rust-lang#27675 (comment)), checks that this is rejected.
- Loading branch information