fork/rust

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

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

1.40.0
752 B21 linesraw
1error[E0658]: const generics are unstable
2  --> $DIR/feature-gate-const_generics.rs:1:14
3   |
4LL | fn foo<const X: ()>() {}
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.rs:3:18
12   |
13LL | struct Foo<const X: usize>([(); X]);
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: aborting due to 2 previous errors
20
21For more information about this error, try `rustc --explain E0658`.