/src/test/compile-fail/infinite-vec-type-recursion.rs
http://github.com/jruderman/rust · Rust · 6 lines · 2 code · 2 blank · 2 comment · 0 complexity · df4c0f59281173291a438a4050f0940c MD5 · raw file
- // -*- rust -*-
- // error-pattern: illegal recursive type
- type x = ~[x];
- fn main() { let b: x = ~[]; }