]> git.proxmox.com Git - rustc.git/blame - src/test/ui/resolve/issue-85348.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / resolve / issue-85348.rs
CommitLineData
17df50a5
XL
1// Checks whether shadowing a const parameter leads to an ICE (#85348).
2
3impl<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
12fn main() {}