Sign in
fuchsia
/
third_party
/
rust
/
346aec9b02f3c74f3fce97fd6bda24709d220e49
/
.
/
src
/
test
/
ui
/
cycle-trait
/
cycle-trait-default-type-trait.rs
blob: b2edc1a1f66ca8b3c9d2e1e1f7cae8193e41ab9f [
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
<
dyn
Foo
>>
{
//~^ ERROR cycle detected
//~| ERROR cycle detected
}
fn
main
()
{
}