//@ check-pass // Regression test for . // This time EXCEPT without `dyn` builtin bounds :^) pub trait Trait: Supertrait {} trait Impossible {} impl Trait for F {} pub trait Supertrait {} impl Supertrait for T {} fn needs_supertrait() {} fn needs_trait() {} struct A; impl Trait for A where A: Supertrait {} impl Supertrait for A {} fn main() { needs_supertrait::(); needs_trait::(); }