1error[E0080]: evaluation of constant value failed 2 --> $DIR/const_panic.rs:6:15 3 | 4LL | const Z: () = std::panic!("cheese"); 5 | ^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'cheese', $DIR/const_panic.rs:6:15 6 | 7 = note: this error originates in the macro `$crate::panic::panic_2015` which comes from the expansion of the macro `std::panic` (in Nightly builds, run with -Z macro-backtrace for more info) 8 9error[E0080]: evaluation of constant value failed 10 --> $DIR/const_panic.rs:9:16 11 | 12LL | const Z2: () = std::panic!(); 13 | ^^^^^^^^^^^^^ the evaluated program panicked at 'explicit panic', $DIR/const_panic.rs:9:16 14 | 15 = note: this error originates in the macro `$crate::panic::panic_2015` which comes from the expansion of the macro `std::panic` (in Nightly builds, run with -Z macro-backtrace for more info) 16 17error[E0080]: evaluation of constant value failed 18 --> $DIR/const_panic.rs:12:15 19 | 20LL | const Y: () = std::unreachable!(); 21 | ^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'internal error: entered unreachable code', $DIR/const_panic.rs:12:15 22 | 23 = note: this error originates in the macro `$crate::panic::unreachable_2015` which comes from the expansion of the macro `std::unreachable` (in Nightly builds, run with -Z macro-backtrace for more info) 24 25error[E0080]: evaluation of constant value failed 26 --> $DIR/const_panic.rs:15:15 27 | 28LL | const X: () = std::unimplemented!(); 29 | ^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'not implemented', $DIR/const_panic.rs:15:15 30 | 31 = note: this error originates in the macro `std::unimplemented` (in Nightly builds, run with -Z macro-backtrace for more info) 32 33error[E0080]: evaluation of constant value failed 34 --> $DIR/const_panic.rs:18:15 35 | 36LL | const W: () = std::panic!(MSG); 37 | ^^^^^^^^^^^^^^^^ the evaluated program panicked at 'hello', $DIR/const_panic.rs:18:15 38 | 39 = note: this error originates in the macro `$crate::panic::panic_2015` which comes from the expansion of the macro `std::panic` (in Nightly builds, run with -Z macro-backtrace for more info) 40 41error[E0080]: evaluation of constant value failed 42 --> $DIR/const_panic.rs:21:16 43 | 44LL | const W2: () = std::panic!("{}", MSG); 45 | ^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'hello', $DIR/const_panic.rs:21:16 46 | 47 = note: this error originates in the macro `$crate::panic::panic_2015` which comes from the expansion of the macro `std::panic` (in Nightly builds, run with -Z macro-backtrace for more info) 48 49error[E0080]: evaluation of constant value failed 50 --> $DIR/const_panic.rs:24:20 51 | 52LL | const Z_CORE: () = core::panic!("cheese"); 53 | ^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'cheese', $DIR/const_panic.rs:24:20 54 | 55 = note: this error originates in the macro `$crate::panic::panic_2015` which comes from the expansion of the macro `core::panic` (in Nightly builds, run with -Z macro-backtrace for more info) 56 57error[E0080]: evaluation of constant value failed 58 --> $DIR/const_panic.rs:27:21 59 | 60LL | const Z2_CORE: () = core::panic!(); 61 | ^^^^^^^^^^^^^^ the evaluated program panicked at 'explicit panic', $DIR/const_panic.rs:27:21 62 | 63 = note: this error originates in the macro `$crate::panic::panic_2015` which comes from the expansion of the macro `core::panic` (in Nightly builds, run with -Z macro-backtrace for more info) 64 65error[E0080]: evaluation of constant value failed 66 --> $DIR/const_panic.rs:30:20 67 | 68LL | const Y_CORE: () = core::unreachable!(); 69 | ^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'internal error: entered unreachable code', $DIR/const_panic.rs:30:20 70 | 71 = note: this error originates in the macro `$crate::panic::unreachable_2015` which comes from the expansion of the macro `core::unreachable` (in Nightly builds, run with -Z macro-backtrace for more info) 72 73error[E0080]: evaluation of constant value failed 74 --> $DIR/const_panic.rs:33:20 75 | 76LL | const X_CORE: () = core::unimplemented!(); 77 | ^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'not implemented', $DIR/const_panic.rs:33:20 78 | 79 = note: this error originates in the macro `core::unimplemented` (in Nightly builds, run with -Z macro-backtrace for more info) 80 81error[E0080]: evaluation of constant value failed 82 --> $DIR/const_panic.rs:36:20 83 | 84LL | const W_CORE: () = core::panic!(MSG); 85 | ^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'hello', $DIR/const_panic.rs:36:20 86 | 87 = note: this error originates in the macro `$crate::panic::panic_2015` which comes from the expansion of the macro `core::panic` (in Nightly builds, run with -Z macro-backtrace for more info) 88 89error[E0080]: evaluation of constant value failed 90 --> $DIR/const_panic.rs:39:21 91 | 92LL | const W2_CORE: () = core::panic!("{}", MSG); 93 | ^^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'hello', $DIR/const_panic.rs:39:21 94 | 95 = note: this error originates in the macro `$crate::panic::panic_2015` which comes from the expansion of the macro `core::panic` (in Nightly builds, run with -Z macro-backtrace for more info) 96 97error: aborting due to 12 previous errors 98 99For more information about this error, try `rustc --explain E0080`. 100