]> git.lizzy.rs Git - rust.git/blob - src/tools/miri/tests/fail/erroneous_const.stderr
Rollup merge of #102187 - b-naber:inline-const-source-info, r=eholk
[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 error: post-monomorphization error: referenced constant has errors
10   --> $DIR/erroneous_const.rs:LL:CC
11    |
12 LL |         let _ = PrintName::<T>::VOID;
13    |                 ^^^^^^^^^^^^^^^^^^^^ referenced constant has errors
14    |
15    = note: inside `no_codegen::<i32>` at $DIR/erroneous_const.rs:LL:CC
16 note: inside `main` at $DIR/erroneous_const.rs:LL:CC
17   --> $DIR/erroneous_const.rs:LL:CC
18    |
19 LL |     no_codegen::<i32>();
20    |     ^^^^^^^^^^^^^^^^^^^
21
22 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
23
24 error: aborting due to 2 previous errors
25
26 For more information about this error, try `rustc --explain E0080`.