fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0530]: let bindings cannot shadow const parameters 2 --> $DIR/issue-85348.rs:6:17 3 | 4LL | impl<const N: usize> ArrayWindowsExample { 5 | - the const parameter `N` is defined here 6... 7LL | let mut N; 8 | ^ cannot be named the same as a const parameter 9 10error[E0412]: cannot find type `ArrayWindowsExample` in this scope 11 --> $DIR/issue-85348.rs:3:22 12 | 13LL | impl<const N: usize> ArrayWindowsExample { 14 | ^^^^^^^^^^^^^^^^^^^ not found in this scope 15 16error[E0282]: type annotations needed 17 --> $DIR/issue-85348.rs:6:13 18 | 19LL | let mut N; 20 | ^^^^^ 21 | 22help: consider giving `N` an explicit type 23 | 24LL | let mut N: /* Type */; 25 | ++++++++++++ 26 27error: aborting due to 3 previous errors 28 29Some errors have detailed explanations: E0282, E0412, E0530. 30For more information about an error, try `rustc --explain E0282`.