rust/tests/ui/infinite/infinite-trait-alias-recursion.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
164 B
Rust
Raw Normal View History

2021-08-21 20:14:13 +00:00
#![feature(trait_alias)]
trait T1 = T2;
//~^ ERROR cycle detected when computing the implied predicates of `T1`
2021-08-21 20:14:13 +00:00
trait T2 = T3;
trait T3 = T1 + T3;
fn main() {}