]> git.lizzy.rs Git - rust.git/blob - src/tools/miri/tests/fail/erroneous_const.stderr
add a weak form of protection that justifies Box noalias
[rust.git] / src / tools / miri / tests / fail / erroneous_const.stderr
1 error[E0080]: evaluation of `PrintName::<i32>::VOID` failed
2   --> $DIR/erroneous_const.rs:LL:CC
3    |
4 LL |     const VOID: ! = panic!();
5    |                     ^^^^^^^^ the evaluated program panicked at 'explicit panic', $DIR/erroneous_const.rs:LL:CC
6    |
7    = note: this error originates in the macro `$crate::panic::panic_2015` which comes from the expansion of the macro `panic` (in Nightly builds, run with -Z macro-backtrace for more info)
8
9 note: erroneous constant used
10   --> $DIR/erroneous_const.rs:LL:CC
11    |
12 LL |         let _ = PrintName::<T>::VOID;
13    |                 ^^^^^^^^^^^^^^^^^^^^
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0080`.