]>
Commit | Line | Data |
---|---|---|
e74abb32 XL |
1 | error[E0658]: const generics are unstable |
2 | --> $DIR/feature-gate-const_generics-ptr.rs:1:22 | |
3 | | | |
4 | LL | struct ConstFn<const F: fn()>; | |
5 | | ^ | |
6 | | | |
3dfed10e XL |
7 | = note: see issue #74878 <https://github.com/rust-lang/rust/issues/74878> for more information |
8 | = help: add `#![feature(min_const_generics)]` to the crate attributes to enable | |
e74abb32 XL |
9 | |
10 | error[E0658]: const generics are unstable | |
11 | --> $DIR/feature-gate-const_generics-ptr.rs:5:23 | |
12 | | | |
13 | LL | struct ConstPtr<const P: *const u32>; | |
14 | | ^ | |
15 | | | |
3dfed10e XL |
16 | = note: see issue #74878 <https://github.com/rust-lang/rust/issues/74878> for more information |
17 | = help: add `#![feature(min_const_generics)]` to the crate attributes to enable | |
e74abb32 | 18 | |
f035d41b | 19 | error: using function pointers as const generic parameters is forbidden |
e74abb32 XL |
20 | --> $DIR/feature-gate-const_generics-ptr.rs:1:25 |
21 | | | |
22 | LL | struct ConstFn<const F: fn()>; | |
23 | | ^^^^ | |
e74abb32 | 24 | |
f035d41b | 25 | error: using raw pointers as const generic parameters is forbidden |
e74abb32 XL |
26 | --> $DIR/feature-gate-const_generics-ptr.rs:5:26 |
27 | | | |
28 | LL | struct ConstPtr<const P: *const u32>; | |
29 | | ^^^^^^^^^^ | |
e74abb32 XL |
30 | |
31 | error: aborting due to 4 previous errors | |
32 | ||
33 | For more information about this error, try `rustc --explain E0658`. |