For macros that are implemented on the compiler, we do *not* mention the `-Zmacro-backtrace` flag. This includes `derive`s and standard macros.
16 lines
526 B
Plaintext
16 lines
526 B
Plaintext
error: argument to `panic!()` in a const context must have type `&str`
|
|
--> $DIR/issue-66693-panic-in-array-len.rs:6:20
|
|
|
|
|
LL | let _ = [0i32; panic!(2f32)];
|
|
| ^^^^^^^^^^^^
|
|
|
|
error[E0080]: evaluation of constant value failed
|
|
--> $DIR/issue-66693-panic-in-array-len.rs:10:21
|
|
|
|
|
LL | let _ = [false; panic!()];
|
|
| ^^^^^^^^ evaluation panicked: explicit panic
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0080`.
|