The `replace_consts` lint is enabled in `clippy-pedantic` by default. The docs hints that using consts is bad because `const fn` exists. This does not make any sense to me: why should `const fn` be preferred over `const`s? Are associated consts also bad?
The
replace_constslint is enabled inclippy-pedanticby default.The docs hints that using consts is bad because
const fnexists.This does not make any sense to me: why should
const fnbe preferred overconsts? Are associated consts also bad?