redundant_pattern_matching suggests the use of non-const fn in const fn #5697
Labels
C-bug
Category: Clippy is not doing the correct thing
C-enhancement
Category: Enhancement of lints, like adding more cases or adding help messages
E-medium
Call for participation: Medium difficulty level problem and requires some initial experience.
However,
Option::is_some
is notconst fn
innightly-2020-06-07
, so it can't be used inconst fn
.Version:
2020-06-07 0262de5
(Playground)
The text was updated successfully, but these errors were encountered: