]> git.lizzy.rs Git - rust.git/blob - src/test/ui/resolve/issue-85348.stderr
Merge commit 'ea199bacef07213dbe008841b89c450e3bf0c638' into rustfmt-sync
[rust.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    |             ^^^^^ consider giving `N` a type
21
22 error: aborting due to 3 previous errors
23
24 Some errors have detailed explanations: E0282, E0412, E0530.
25 For more information about an error, try `rustc --explain E0282`.