/src/test/compile-fail/type-recursive.rs

http://github.com/jruderman/rust · Rust · 4 lines · 2 code · 1 blank · 1 comment · 0 complexity · 022727e57f1525e93e1e0f4dd4b0b0c6 MD5 · raw file

  1. // error-pattern:illegal recursive type
  2. type t1 = {foo: int, foolish: t1};
  3. fn main() { }