2021-09-21 08:07:28 -05:00
|
|
|
warning: the feature `adt_const_params` is incomplete and may not be safe to use and/or cause compiler crashes
|
2022-07-23 15:09:52 -05:00
|
|
|
--> $DIR/refs_check_const_eq-issue-88384.rs:2:12
|
2021-09-21 08:07:28 -05:00
|
|
|
|
|
|
|
|
LL | #![feature(adt_const_params)]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2022-03-21 10:33:15 -05:00
|
|
|
= note: see issue #95174 <https://github.com/rust-lang/rust/issues/95174> for more information
|
2022-09-18 10:55:36 -05:00
|
|
|
= note: `#[warn(incomplete_features)]` on by default
|
2021-09-21 08:07:28 -05:00
|
|
|
|
2022-07-23 15:09:52 -05:00
|
|
|
error[E0741]: using function pointers as const generic parameters is forbidden
|
|
|
|
--> $DIR/refs_check_const_eq-issue-88384.rs:10:21
|
|
|
|
|
|
|
|
|
LL | struct Foo<const T: CompileTimeSettings>;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error[E0741]: using function pointers as const generic parameters is forbidden
|
|
|
|
--> $DIR/refs_check_const_eq-issue-88384.rs:13:15
|
|
|
|
|
|
|
|
|
LL | impl<const T: CompileTimeSettings> Foo<T> {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors; 1 warning emitted
|
2021-09-21 08:07:28 -05:00
|
|
|
|
2022-07-23 15:09:52 -05:00
|
|
|
For more information about this error, try `rustc --explain E0741`.
|