]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/foreign-item-const-parameter.min.stderr
Auto merge of #79342 - CDirkx:ipaddr-const, r=oli-obk
[rust.git] / src / test / ui / const-generics / foreign-item-const-parameter.min.stderr
1 error[E0044]: foreign items may not have const parameters
2   --> $DIR/foreign-item-const-parameter.rs:8:5
3    |
4 LL |     fn foo<const X: usize>();
5    |     ^^^^^^^^^^^^^^^^^^^^^^^^^ can't have const parameters
6    |
7    = help: replace the const parameters with concrete consts
8
9 error[E0044]: foreign items may not have type or const parameters
10   --> $DIR/foreign-item-const-parameter.rs:10:5
11    |
12 LL |     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
17 error: aborting due to 2 previous errors
18
19 For more information about this error, try `rustc --explain E0044`.