fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
507 B19 linesraw
1error: const parameters are not permitted in `const fn`
2  --> $DIR/const-fn-with-const-param.rs:4:1
3   |
4LL | / const fn const_u32_identity<const X: u32>() -> u32 {
5LL | |
6LL | |     X
7LL | | }
8   | |_^
9
10warning: the feature `const_generics` is incomplete and may cause the compiler to crash
11  --> $DIR/const-fn-with-const-param.rs:1:12
12   |
13LL | #![feature(const_generics)]
14   |            ^^^^^^^^^^^^^^
15   |
16   = note: `#[warn(incomplete_features)]` on by default
17
18error: aborting due to previous error
19