]> git.lizzy.rs Git - rust.git/blob - src/test/ui/cycle-trait/cycle-trait-supertrait-indirect.rs
Compress amount of hashed bytes for `isize` values in StableHasher
[rust.git] / src / test / ui / cycle-trait / cycle-trait-supertrait-indirect.rs
1 // Test a supertrait cycle where the first trait we find (`A`) is not
2 // a direct participant in the cycle.
3
4 trait A: B {
5 }
6
7 trait B: C {
8     //~^ ERROR cycle detected
9 }
10
11 trait C: B { }
12
13 fn main() { }