rust/src/test/ui/unboxed-closures/unboxed-closure-no-cyclic-sig.stderr

14 lines
580 B
Plaintext
Raw Normal View History

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
|
2018-02-22 18:42:32 -06:00
LL | g(|_| { }); //~ ERROR closure/generator type that references itself
| ^^^^^^^^ 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`.