2020-08-09 01:19:57 -05:00
|
|
|
error[E0044]: foreign items may not have const parameters
|
2021-08-27 11:04:57 -05:00
|
|
|
--> $DIR/foreign-item-const-parameter.rs:2:5
|
2020-08-09 01:19:57 -05:00
|
|
|
|
|
|
|
|
LL | fn foo<const X: usize>();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^ can't have const parameters
|
|
|
|
|
|
|
|
|
= help: replace the const parameters with concrete consts
|
|
|
|
|
|
|
|
error[E0044]: foreign items may not have type or const parameters
|
2021-08-27 11:04:57 -05:00
|
|
|
--> $DIR/foreign-item-const-parameter.rs:4:5
|
2020-08-09 01:19:57 -05:00
|
|
|
|
|
|
|
|
LL | fn bar<T, const X: usize>(_: T);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't have type or const parameters
|
|
|
|
|
|
|
|
|
= help: replace the type or const parameters with concrete types or consts
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0044`.
|