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
699 B20 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   | ----------------------^--
6   | |                     |
7   | |                     help: a struct with a similar name exists: `S`
8   | similarly named struct `S` defined here
9
10warning: the feature `const_generics` is incomplete and may cause the compiler to crash
11  --> $DIR/struct-with-invalid-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
20For more information about this error, try `rustc --explain E0573`.