2017-11-17 10:13:13 -06:00
|
|
|
error[E0644]: closure/generator type that references itself
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/unboxed-closure-no-cyclic-sig.rs:8:7
|
2017-11-17 10:13:13 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | g(|_| { }); //~ ERROR closure/generator type that references itself
|
2017-11-17 10:13:13 -06:00
|
|
|
| ^^^^^^^^ cyclic type of infinite size
|
|
|
|
|
|
|
|
|
= note: closures cannot capture themselves or take themselves as argument;
|
|
|
|
this error may be the result of a recent compiler bug-fix,
|
|
|
|
see https://github.com/rust-lang/rust/issues/46062 for more details
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-03-03 08:59:40 -06:00
|
|
|
For more information about this error, try `rustc --explain E0644`.
|