fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
528 B16 linesraw
1error[E0573]: expected type, found const parameter `C`
2  --> $DIR/struct-with-invalid-const-param.rs:4:23
3   |
4LL | struct S<const C: u8>(C);
5   |                       ^ help: a struct with a similar name exists: `S`
6
7warning: the feature `const_generics` is incomplete and may cause the compiler to crash
8  --> $DIR/struct-with-invalid-const-param.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
16