fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
512 B17 linesraw
1warning: the feature `const_generics` is incomplete and may cause the compiler to crash
2  --> $DIR/const-param.rs:3:12
3   |
4LL | #![feature(const_generics)]
5   |            ^^^^^^^^^^^^^^
6   |
7   = note: `#[warn(incomplete_features)]` on by default
8
9error[E0158]: const parameters cannot be referenced in patterns
10  --> $DIR/const-param.rs:7:9
11   |
12LL |         N => {}
13   |         ^
14
15error: aborting due to previous error; 1 warning emitted
16
17For more information about this error, try `rustc --explain E0158`.