]>
Commit | Line | Data |
---|---|---|
c295e0f8 | 1 | warning: the feature `adt_const_params` is incomplete and may not be safe to use and/or cause compiler crashes |
064997fb | 2 | --> $DIR/refs_check_const_eq-issue-88384.rs:2:12 |
c295e0f8 XL |
3 | | |
4 | LL | #![feature(adt_const_params)] | |
5 | | ^^^^^^^^^^^^^^^^ | |
6 | | | |
5e7ed085 | 7 | = note: see issue #95174 <https://github.com/rust-lang/rust/issues/95174> for more information |
2b03887a | 8 | = note: `#[warn(incomplete_features)]` on by default |
c295e0f8 | 9 | |
064997fb FG |
10 | error[E0741]: using function pointers as const generic parameters is forbidden |
11 | --> $DIR/refs_check_const_eq-issue-88384.rs:10:21 | |
12 | | | |
13 | LL | struct Foo<const T: CompileTimeSettings>; | |
14 | | ^^^^^^^^^^^^^^^^^^^ | |
15 | ||
16 | error[E0741]: using function pointers as const generic parameters is forbidden | |
17 | --> $DIR/refs_check_const_eq-issue-88384.rs:13:15 | |
18 | | | |
19 | LL | impl<const T: CompileTimeSettings> Foo<T> { | |
20 | | ^^^^^^^^^^^^^^^^^^^ | |
21 | ||
22 | error: aborting due to 2 previous errors; 1 warning emitted | |
c295e0f8 | 23 | |
064997fb | 24 | For more information about this error, try `rustc --explain E0741`. |