fork/rust

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

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
767 B23 linesraw
1warning: the feature `const_generics` is incomplete and may cause the compiler to crash
2  --> $DIR/incorrect-number-of-const-args.rs:1:12
3   |
4LL | #![feature(const_generics)]
5   |            ^^^^^^^^^^^^^^
6   |
7   = note: `#[warn(incomplete_features)]` on by default
8
9error[E0107]: wrong number of const arguments: expected 2, found 1
10  --> $DIR/incorrect-number-of-const-args.rs:9:5
11   |
12LL |     foo::<0>();
13   |     ^^^^^^^^ expected 2 const arguments
14
15error[E0107]: wrong number of const arguments: expected 2, found 3
16  --> $DIR/incorrect-number-of-const-args.rs:10:17
17   |
18LL |     foo::<0, 0, 0>();
19   |                 ^ unexpected const argument
20
21error: aborting due to 2 previous errors
22
23For more information about this error, try `rustc --explain E0107`.