]> git.proxmox.com Git - rustc.git/blob - src/test/ui/consts/refs_check_const_eq-issue-88384.stderr
New upstream version 1.64.0+dfsg1
[rustc.git] / src / test / ui / consts / refs_check_const_eq-issue-88384.stderr
1 warning: the feature `adt_const_params` is incomplete and may not be safe to use and/or cause compiler crashes
2 --> $DIR/refs_check_const_eq-issue-88384.rs:2:12
3 |
4 LL | #![feature(adt_const_params)]
5 | ^^^^^^^^^^^^^^^^
6 |
7 = note: `#[warn(incomplete_features)]` on by default
8 = note: see issue #95174 <https://github.com/rust-lang/rust/issues/95174> for more information
9
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
23
24 For more information about this error, try `rustc --explain E0741`.