trait A: B + A {} //~^ ERROR cycle detected when computing the super predicates of `A` [E0391] //~| ERROR cycle detected when computing the implied predicates of `A` [E0391] trait B {} impl A for () {} impl B for () {} fn main() { let a: Box = Box::new(()); let _b: Box = a; }