We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f5371a5 + 7508086 commit 17dba3bCopy full SHA for 17dba3b
src/test/ui/const-generics/issue-60263.rs
@@ -0,0 +1,9 @@
1
+struct B<const I: u8>; //~ ERROR const generics are unstable
2
+
3
+impl B<0> {
4
+ fn bug() -> Self {
5
+ panic!()
6
+ }
7
+}
8
9
+fn main() {}
src/test/ui/const-generics/issue-60263.stderr
@@ -0,0 +1,12 @@
+error[E0658]: const generics are unstable
+ --> $DIR/issue-60263.rs:1:16
+ |
+LL | struct B<const I: u8>;
+ | ^
+ = note: for more information, see https://github.com/rust-lang/rust/issues/44580
+ = help: add #![feature(const_generics)] to the crate attributes to enable
10
+error: aborting due to previous error
11
12
+For more information about this error, try `rustc --explain E0658`.
0 commit comments