mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +00:00
14 lines
224 B
Rust
14 lines
224 B
Rust
trait A: B + A {}
|
|
//~^ ERROR cycle detected when computing the super 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;
|
|
}
|