fork/rust

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

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

master
1.3 KiB33 linesraw
1error[E0658]: `for<...>` binders for closures are experimental
2  --> $DIR/feature-gate-closure_lifetime_binder.rs:2:5
3   |
4LL |     for<> || -> () {};
5   |     ^^^^^
6   |
7   = note: see issue #97362 <https://github.com/rust-lang/rust/issues/97362> for more information
8   = help: add `#![feature(closure_lifetime_binder)]` to the crate attributes to enable
9   = help: consider removing `for<...>`
10
11error[E0658]: `for<...>` binders for closures are experimental
12  --> $DIR/feature-gate-closure_lifetime_binder.rs:4:5
13   |
14LL |     for<'a> || -> () {};
15   |     ^^^^^^^
16   |
17   = note: see issue #97362 <https://github.com/rust-lang/rust/issues/97362> for more information
18   = help: add `#![feature(closure_lifetime_binder)]` to the crate attributes to enable
19   = help: consider removing `for<...>`
20
21error[E0658]: `for<...>` binders for closures are experimental
22  --> $DIR/feature-gate-closure_lifetime_binder.rs:6:5
23   |
24LL |     for<'a, 'b> |_: &'a ()| -> () {};
25   |     ^^^^^^^^^^^
26   |
27   = note: see issue #97362 <https://github.com/rust-lang/rust/issues/97362> for more information
28   = help: add `#![feature(closure_lifetime_binder)]` to the crate attributes to enable
29   = help: consider removing `for<...>`
30
31error: aborting due to 3 previous errors
32
33For more information about this error, try `rustc --explain E0658`.