]> git.lizzy.rs Git - rust.git/blob - src/test/ui/resolve/issue-85348.rs
:arrow_up: rust-analyzer
[rust.git] / src / test / ui / resolve / issue-85348.rs
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() {}