Sign in
fuchsia
/
third_party
/
rust
/
d782f09ae0b88a73a69e2fa3169222cdbc47d4ec
/
.
/
src
/
test
/
ui
/
cycle-trait
/
cycle-trait-default-type-trait.rs
blob: 6175b7df1107ad78029a5ffc4f4231a2d105a05b [
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
}
fn
main
()
{
}