]>
Commit | Line | Data |
---|---|---|
17df50a5 XL |
1 | // Checks whether shadowing a const parameter leads to an ICE (#85348). |
2 | ||
3 | impl<const N: usize> ArrayWindowsExample { | |
4 | //~^ ERROR: cannot find type `ArrayWindowsExample` in this scope [E0412] | |
5 | fn next() { | |
6 | let mut N; | |
7 | //~^ ERROR: let bindings cannot shadow const parameters [E0530] | |
8 | //~| ERROR: type annotations needed [E0282] | |
9 | } | |
10 | } | |
11 | ||
12 | fn main() {} |