fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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