/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

  1. // -*- rust -*-
  2. // error-pattern: illegal recursive type
  3. type x = ~[x];
  4. fn main() { let b: x = ~[]; }