]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-const_generics-ptr.stderr
Merge branch 'master' into feature/incorporate-tracing
[rust.git] / src / test / ui / feature-gates / feature-gate-const_generics-ptr.stderr
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    |
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
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    |
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
18
19 error: using function pointers as const generic parameters is forbidden
20   --> $DIR/feature-gate-const_generics-ptr.rs:1:25
21    |
22 LL | struct ConstFn<const F: fn()>;
23    |                         ^^^^
24
25 error: using raw pointers as const generic parameters is forbidden
26   --> $DIR/feature-gate-const_generics-ptr.rs:5:26
27    |
28 LL | struct ConstPtr<const P: *const u32>;
29    |                          ^^^^^^^^^^
30
31 error: aborting due to 4 previous errors
32
33 For more information about this error, try `rustc --explain E0658`.