]> git.proxmox.com Git - rustc.git/blame - src/test/ui/feature-gates/feature-gate-const_generics-ptr.stderr
New upstream version 1.50.0+dfsg1
[rustc.git] / src / test / ui / feature-gates / feature-gate-const_generics-ptr.stderr
CommitLineData
e74abb32
XL
1error[E0658]: const generics are unstable
2 --> $DIR/feature-gate-const_generics-ptr.rs:1:22
3 |
4LL | 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
10error[E0658]: const generics are unstable
11 --> $DIR/feature-gate-const_generics-ptr.rs:5:23
12 |
13LL | 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 19error: using function pointers as const generic parameters is forbidden
e74abb32
XL
20 --> $DIR/feature-gate-const_generics-ptr.rs:1:25
21 |
22LL | struct ConstFn<const F: fn()>;
23 | ^^^^
e74abb32 24
f035d41b 25error: using raw pointers as const generic parameters is forbidden
e74abb32
XL
26 --> $DIR/feature-gate-const_generics-ptr.rs:5:26
27 |
28LL | struct ConstPtr<const P: *const u32>;
29 | ^^^^^^^^^^
e74abb32
XL
30
31error: aborting due to 4 previous errors
32
33For more information about this error, try `rustc --explain E0658`.