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