Files
rust/tests/ui/const-generics/generic_const_exprs
Esteban Küber 15d8e9ea66 Recognize potential impl<const N: usize> to impl<N> mistake
When encountering code like `impl<N> Bar<N> for [u8; N]`, suggest `impl<const N: Type> Bar<N> for [u8; N]` as a possibility.

```
error[E0423]: expected value, found type parameter `T`
  --> $DIR/issue-69654.rs:5:25
   |
LL | impl<T> Bar<T> for [u8; T] {}
   |      -                  ^ not a value
   |      |
   |      found this type parameter
   |
help: you might have meant to write a const parameter here
   |
LL | impl<const T: /* Type */> Bar<T> for [u8; T] {}
   |      +++++  ++++++++++++
```
2026-01-13 23:47:35 +00:00
..
2025-06-11 15:30:15 +01:00
2024-07-02 17:07:21 +01:00
2024-07-02 17:07:21 +01:00
2023-01-11 09:32:08 +00:00
2025-05-21 20:20:19 +01:00
2025-05-21 20:20:19 +01:00
2025-05-21 20:20:19 +01:00
2023-01-11 09:32:08 +00:00
2025-05-21 20:20:19 +01:00
2023-01-11 09:32:08 +00:00
2025-02-14 00:37:23 +01:00
2025-02-14 00:37:23 +01:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2023-01-11 09:32:08 +00:00
2025-06-11 15:30:15 +01:00
2025-05-21 20:20:19 +01:00
2024-12-18 16:35:06 +01:00
2023-01-11 09:32:08 +00:00