fork/rust

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

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

1.41.0
974 B27 linesraw
1warning: the feature `const_generics` is incomplete and may cause the compiler to crash
2  --> $DIR/foreign-item-const-parameter.rs:1:12
3   |
4LL | #![feature(const_generics)]
5   |            ^^^^^^^^^^^^^^
6   |
7   = note: `#[warn(incomplete_features)]` on by default
8
9error[E0044]: foreign items may not have const parameters
10  --> $DIR/foreign-item-const-parameter.rs:5:5
11   |
12LL |     fn foo<const X: usize>();
13   |     ^^^^^^^^^^^^^^^^^^^^^^^^^ can't have const parameters
14   |
15   = help: replace the const parameters with concrete consts
16
17error[E0044]: foreign items may not have type or const parameters
18  --> $DIR/foreign-item-const-parameter.rs:7:5
19   |
20LL |     fn bar<T, const X: usize>(_: T);
21   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't have type or const parameters
22   |
23   = help: replace the type or const parameters with concrete types or consts
24
25error: aborting due to 2 previous errors
26
27For more information about this error, try `rustc --explain E0044`.