1
Fork 0

Add test of recursive trait aliases

This commit is contained in:
Noah Lev 2021-08-21 13:14:13 -07:00
parent cd0fc444fb
commit bf360dc272
2 changed files with 51 additions and 0 deletions

View file

@ -0,0 +1,10 @@
#![feature(trait_alias)]
trait T1 = T2;
//~^ ERROR cycle detected when computing the super predicates of `T1`
trait T2 = T3;
trait T3 = T1 + T3;
fn main() {}