Sign in
chromium
/
external
/
github.com
/
rust-lang
/
rust
/
6d71251cf9e40326461f90f8ff9a7024706aea87
/
.
/
tests
/
ui
/
cycle-trait
/
cycle-trait-supertrait-indirect.rs
blob: 9a72b65da883e6697e664764a045d4405da12cdf [
file
] [
log
] [
blame
]
// Test a supertrait cycle where the first trait we find (`A`) is not
// a direct participant in the cycle.
trait
A
:
B
{
}
trait
B
:
C
{
//~^ ERROR cycle detected
}
trait
C
:
B
{
}
fn
main
()
{
}