Sign in
android
/
toolchain
/
rustc
/
d720b3f2ba07cb42ff7b311589c99daefe3aaa22
/
.
/
tests
/
ui
/
traits
/
trait-upcasting
/
cyclic-trait-resolution.rs
blob: 511e41562b2203e49cfd395e487bee2da9673fa1 [
file
] [
log
] [
blame
]
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
;
}