Lars Schumann
Lars Schumann
I'm currently doing rustlings and struggled with iterators3 and searched a solution, which i thought i found [here](https://github.com/wh5a/rustlings-solutions/blob/main/exercises/18_iterators/iterators3.rs). It implements one of the functions to edit like this: ```rust fn...
### Summary This lint disagrees with rustc if a function can be const in certain situations involving the nightly #![feature(const_trait_impl)]. ### Lint Name missing_const_for_fn ### Reproducer I tried this code:...
### What it does Suggest to add `const {}` blocks around every¹ const evaluatable expression. ¹There are many cases where this would probably do nothing, these would need to be...
```rust #![no_implicit_prelude] extern crate alloc; use alloc::boxed; use alloc::vec; use alloc::vec::Vec; fn main() { let _: Vec = vec![]; } ``` turns into ```rust #![no_implicit_prelude] extern crate alloc; use alloc::{...