fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
769 B19 linesraw
1error[E0644]: closure/generator type that references itself
2  --> $DIR/issue-25439.rs:8:9
3   |
4LL |     fix(|_, x| x);
5   |         ^^^^^^ cyclic type of infinite size
6   |
7   = note: closures cannot capture themselves or take themselves as argument;
8           this error may be the result of a recent compiler bug-fix,
9           see issue #46062 <https://github.com/rust-lang/rust/issues/46062>
10           for more information
11note: required by a bound in `fix`
12  --> $DIR/issue-25439.rs:3:33
13   |
14LL | fn fix<F>(f: F) -> i32 where F: Fn(Helper<F>, i32) -> i32 {
15   |                                 ^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `fix`
16
17error: aborting due to previous error
18
19For more information about this error, try `rustc --explain E0644`.