False positive: missing_const_for_fn #4041
Labels
C-bug
Category: Clippy is not doing the correct thing
I-suggestion-causes-error
Issue: The suggestions provided by this Lint cause an ICE/error when applied
I simplified the problem to this code:
If I run clippy, it suggests to add
const
toget_string
signature:But if I add
const
, the code refuses to compile:The code compiles though if I use
u8
instead ofString
.This problem persists on both stable and nightly:
The text was updated successfully, but these errors were encountered: