fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

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