fork/rust

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

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

1.44.0
577 B16 linesraw
1error: type parameters must be declared prior to const parameters
2  --> $DIR/argument_order.rs:4:28
3   |
4LL | struct Bad<const N: usize, T> {
5   |           -----------------^- help: reorder the parameters: lifetimes, then types, then consts: `<T, const N: usize>`
6
7warning: the feature `const_generics` is incomplete and may cause the compiler to crash
8  --> $DIR/argument_order.rs:1:12
9   |
10LL | #![feature(const_generics)]
11   |            ^^^^^^^^^^^^^^
12   |
13   = note: `#[warn(incomplete_features)]` on by default
14
15error: aborting due to previous error; 1 warning emitted
16