Add feature gates for for
and ?
in consts
This commit is contained in:
parent
a985d8e6c7
commit
dbd126901a
8 changed files with 91 additions and 4 deletions
|
@ -677,6 +677,12 @@ declare_features! (
|
|||
/// Allows `#[derive(Default)]` and `#[default]` on enums.
|
||||
(active, derive_default_enum, "1.56.0", Some(86985), None),
|
||||
|
||||
/// Allows `for _ in _` loops in const contexts.
|
||||
(active, const_for, "1.55.0", None, None),
|
||||
|
||||
/// Allows the `?` operator in const contexts.
|
||||
(active, const_try, "1.55.0", None, None),
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// feature-group-end: actual feature gates
|
||||
// -------------------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue