Sign in
android
/
toolchain
/
rustc
/
ff3f07ae99a30006dd85b9d73084edd9355c9db6
/
.
/
src
/
test
/
ui
/
cycle-trait
/
cycle-trait-default-type-trait.rs
blob: d658753eb242bc80500ef73819f13f91dbb3d754 [
file
] [
log
] [
blame
]
// Test a cycle where a type parameter on a trait has a default that
// again references the trait.
trait
Foo
<
X
=
Box
<
Foo
>>
{
//~^ ERROR cycle detected
}
fn
main
()
{
}