about summary refs log tree commit diff
path: root/tests/ui/infinite/infinite-type-alias-mutual-recursion.rs
blob: cf9ea0db4cbee662b4755dcced4df489e7741934 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//@ revisions: feature gated

#![cfg_attr(feature, feature(lazy_type_alias))]
#![allow(incomplete_features)]

type X1 = X2;
//[gated]~^ ERROR cycle detected when expanding type alias `X1`
//[feature]~^^ ERROR: overflow normalizing the type alias `X2`
type X2 = X3;
//[feature]~^ ERROR: overflow normalizing the type alias `X3`
type X3 = X1;
//[feature]~^ ERROR: overflow normalizing the type alias `X1`

fn main() {}