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