fork/rust

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

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

master
632 B19 linesraw
1error[E0277]: expected a `Fn<(&'w (),)>` closure, found `fn(&'w ())`
2  --> $DIR/fn-ptr.rs:12:5
3   |
4LL |     ice();
5   |     ^^^ expected an `Fn<(&'w (),)>` closure, found `fn(&'w ())`
6   |
7   = help: the trait `for<'w> Fn<(&'w (),)>` is not implemented for `fn(&'w ())`
8note: required by a bound in `ice`
9  --> $DIR/fn-ptr.rs:7:25
10   |
11LL | fn ice()
12   |    --- required by a bound in this function
13LL | where
14LL |     for<'w> fn(&'w ()): Fn(&'w ()),
15   |                         ^^^^^^^^^^ required by this bound in `ice`
16
17error: aborting due to previous error
18
19For more information about this error, try `rustc --explain E0277`.