fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
1.5 KiB39 linesraw
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   |
7   = note: for more information, see https://github.com/rust-lang/rust/issues/44580
8   = help: add `#![feature(const_generics)]` to the crate attributes to enable
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   |
16   = note: for more information, see https://github.com/rust-lang/rust/issues/44580
17   = help: add `#![feature(const_generics)]` to the crate attributes to enable
18
19error[E0658]: using function pointers as const generic parameters is unstable
20  --> $DIR/feature-gate-const_generics-ptr.rs:1:25
21   |
22LL | struct ConstFn<const F: fn()>;
23   |                         ^^^^
24   |
25   = note: for more information, see https://github.com/rust-lang/rust/issues/53020
26   = help: add `#![feature(const_compare_raw_pointers)]` to the crate attributes to enable
27
28error[E0658]: using raw pointers as const generic parameters is unstable
29  --> $DIR/feature-gate-const_generics-ptr.rs:5:26
30   |
31LL | struct ConstPtr<const P: *const u32>;
32   |                          ^^^^^^^^^^
33   |
34   = note: for more information, see https://github.com/rust-lang/rust/issues/53020
35   = help: add `#![feature(const_compare_raw_pointers)]` to the crate attributes to enable
36
37error: aborting due to 4 previous errors
38
39For more information about this error, try `rustc --explain E0658`.