I have the [following code](https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=f615be9eaa32894a0c44a4effdbd6a1d): ```rust fn foo() {} const fn bar() {} fn main() { let _ = foo(); const _: () = bar(); } ``` Even though both `foo` and `bar` are used, I get an unused warning for `bar`: ```text warning: function `bar` is never used --> src/main.rs:2:10 | 2 | const fn bar() {} | ^^^ | = note: `#[warn(dead_code)]` on by default ``` ## Version Rust 1.65.0