1 error[E0044]: foreign items may not have const parameters
2 --> $DIR/foreign-item-const-parameter.rs:2:5
4 LL | fn foo<const X: usize>();
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^ can't have const parameters
7 = help: replace the const parameters with concrete consts
9 error[E0044]: foreign items may not have type or const parameters
10 --> $DIR/foreign-item-const-parameter.rs:4:5
12 LL | fn bar<T, const X: usize>(_: T);
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't have type or const parameters
15 = help: replace the type or const parameters with concrete types or consts
17 error: aborting due to 2 previous errors
19 For more information about this error, try `rustc --explain E0044`.