fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
716 B20 linesraw
1error[E0530]: match bindings cannot shadow const parameters
2  --> $DIR/shadow-const-param.rs:7:9
3   |
4LL | fn foo<const N: i32>(i: i32) -> bool {
5   |              - the const parameter `N` is defined here
6LL |     match i {
7LL |         N @ _ => true,
8   |         ^ cannot be named the same as a const parameter
9
10error[E0530]: let bindings cannot shadow const parameters
11  --> $DIR/shadow-const-param.rs:13:9
12   |
13LL | fn bar<const N: i32>(i: i32) -> bool {
14   |              - the const parameter `N` is defined here
15LL |     let N @ _ = 0;
16   |         ^ cannot be named the same as a const parameter
17
18error: aborting due to 2 previous errors
19
20For more information about this error, try `rustc --explain E0530`.