For macros that are implemented on the compiler, we do *not* mention the `-Zmacro-backtrace` flag. This includes `derive`s and standard macros.
22 lines
644 B
Plaintext
22 lines
644 B
Plaintext
error[E0080]: evaluation of constant value failed
|
|
--> $DIR/issue-81899.rs:4:24
|
|
|
|
|
LL | const _CONST: &[u8] = &f(&[], |_| {});
|
|
| ^^^^^^^^^^^^^^ evaluation panicked: explicit panic
|
|
|
|
|
note: inside `f::<{closure@$DIR/issue-81899.rs:4:31: 4:34}>`
|
|
--> $DIR/issue-81899.rs:11:5
|
|
|
|
|
LL | panic!()
|
|
| ^^^^^^^^ the failure occurred here
|
|
|
|
note: erroneous constant encountered
|
|
--> $DIR/issue-81899.rs:4:23
|
|
|
|
|
LL | const _CONST: &[u8] = &f(&[], |_| {});
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0080`.
|