rust/src/test/compile-fail/occurs-check.rs
Niko Matsakis c0d61795de wip: refactor repr of regions
- we now distinguish bound/free parameters (see region-param
  test case for why this is necessary)
- we also track bounds on region variables
- also, restructure fold_ty() to have multiple variants without
  duplication instead of one overloaded folder.  This also allows
  for using block functions.
2012-04-04 19:41:23 -07:00

5 lines
76 B
Rust

fn main() {
let f; //! ERROR cyclic type of infinite size
f = @f;
}