]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-closure_lifetime_binder.stderr
Lower closure binders to hir & properly check them
[rust.git] / src / test / ui / feature-gates / feature-gate-closure_lifetime_binder.stderr
1 error[E0658]: `for<...>` binders for closures are experimental
2   --> $DIR/feature-gate-closure_lifetime_binder.rs:2:5
3    |
4 LL |     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
11 error[E0658]: `for<...>` binders for closures are experimental
12   --> $DIR/feature-gate-closure_lifetime_binder.rs:4:5
13    |
14 LL |     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
21 error[E0658]: `for<...>` binders for closures are experimental
22   --> $DIR/feature-gate-closure_lifetime_binder.rs:6:5
23    |
24 LL |     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
31 error: aborting due to 3 previous errors
32
33 For more information about this error, try `rustc --explain E0658`.