blob: 6211c7fac4158f9ea627d2560011eeb4cb45ac89 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
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<dyn A> = Box::new(());
let _b: Box<dyn B> = a;
}
|