2025-05-28 10:29:08 +00:00
|
|
|
error[E0080]: evaluation panicked: asdf
|
2024-12-14 18:03:08 +00:00
|
|
|
--> $DIR/invalid-const.rs:5:19
|
2024-08-24 17:22:48 +00:00
|
|
|
|
|
|
|
|
|
LL | pub bax: u8 = panic!("asdf"),
|
2025-06-07 11:32:09 +02:00
|
|
|
| ^^^^^^^^^^^^^^ evaluation of `Bat::bax::{constant#0}` failed here
|
2024-08-24 17:22:48 +00:00
|
|
|
|
2025-05-28 10:29:08 +00:00
|
|
|
error[E0080]: attempt to compute `130_u8 + 130_u8`, which would overflow
|
2024-12-14 18:03:08 +00:00
|
|
|
--> $DIR/invalid-const.rs:11:19
|
2024-08-24 17:22:48 +00:00
|
|
|
|
|
|
|
|
|
LL | pub bat: u8 = 130 + 130,
|
2025-05-30 14:06:35 +00:00
|
|
|
| ^^^^^^^^^ evaluation of `Baz::<C>::bat::{constant#0}` failed here
|
2024-08-24 17:22:48 +00:00
|
|
|
|
2024-12-06 23:08:17 +00:00
|
|
|
error: aborting due to 2 previous errors
|
2024-08-24 17:22:48 +00:00
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0080`.
|