error[E0658]: panicking in constants is unstable
- --> $DIR/issue-76064.rs:1:17
+ --> $DIR/issue-76064.rs:3:17
|
-LL | struct Bug([u8; panic!(1)]);
- | ^^^^^^^^^
+LL | struct Bug([u8; panic!("panic")]);
+ | ^^^^^^^^^^^^^^^
|
= note: see issue #51999 <https://github.com/rust-lang/rust/issues/51999> for more information
= help: add `#![feature(const_panic)]` to the crate attributes to enable