mirror of
https://github.com/rust-lang/rust
synced 2024-09-05 16:57:03 +00:00
15 lines
417 B
Rust
15 lines
417 B
Rust
//@ 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() {}
|