]> git.proxmox.com Git - rustc.git/blame - tests/ui/consts/const-eval/const_panic.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / consts / const-eval / const_panic.stderr
CommitLineData
136023e0 1error[E0080]: evaluation of constant value failed
c295e0f8 2 --> $DIR/const_panic.rs:6:15
b7449926 3 |
29967ef6 4LL | const Z: () = std::panic!("cheese");
c295e0f8 5 | ^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'cheese', $DIR/const_panic.rs:6:15
b7449926 6 |
064997fb 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)
b7449926 8
136023e0 9error[E0080]: evaluation of constant value failed
c295e0f8 10 --> $DIR/const_panic.rs:9:16
b7449926 11 |
29967ef6 12LL | const Z2: () = std::panic!();
c295e0f8 13 | ^^^^^^^^^^^^^ the evaluated program panicked at 'explicit panic', $DIR/const_panic.rs:9:16
b7449926 14 |
064997fb 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)
b7449926 16
136023e0 17error[E0080]: evaluation of constant value failed
c295e0f8 18 --> $DIR/const_panic.rs:12:15
b7449926 19 |
29967ef6 20LL | const Y: () = std::unreachable!();
c295e0f8 21 | ^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'internal error: entered unreachable code', $DIR/const_panic.rs:12:15
b7449926 22 |
064997fb 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)
b7449926 24
136023e0 25error[E0080]: evaluation of constant value failed
c295e0f8 26 --> $DIR/const_panic.rs:15:15
29967ef6
XL
27 |
28LL | const X: () = std::unimplemented!();
c295e0f8 29 | ^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'not implemented', $DIR/const_panic.rs:15:15
29967ef6 30 |
a2a8927a 31 = note: this error originates in the macro `std::unimplemented` (in Nightly builds, run with -Z macro-backtrace for more info)
29967ef6 32
136023e0 33error[E0080]: evaluation of constant value failed
c295e0f8 34 --> $DIR/const_panic.rs:18:15
29967ef6
XL
35 |
36LL | const W: () = std::panic!(MSG);
c295e0f8 37 | ^^^^^^^^^^^^^^^^ the evaluated program panicked at 'hello', $DIR/const_panic.rs:18:15
29967ef6 38 |
064997fb 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)
29967ef6 40
136023e0 41error[E0080]: evaluation of constant value failed
c295e0f8
XL
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 |
064997fb 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)
c295e0f8
XL
48
49error[E0080]: evaluation of constant value failed
50 --> $DIR/const_panic.rs:24:20
29967ef6
XL
51 |
52LL | const Z_CORE: () = core::panic!("cheese");
c295e0f8 53 | ^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'cheese', $DIR/const_panic.rs:24:20
29967ef6 54 |
064997fb 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)
29967ef6 56
136023e0 57error[E0080]: evaluation of constant value failed
c295e0f8 58 --> $DIR/const_panic.rs:27:21
29967ef6
XL
59 |
60LL | const Z2_CORE: () = core::panic!();
c295e0f8 61 | ^^^^^^^^^^^^^^ the evaluated program panicked at 'explicit panic', $DIR/const_panic.rs:27:21
29967ef6 62 |
064997fb 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)
29967ef6 64
136023e0 65error[E0080]: evaluation of constant value failed
c295e0f8 66 --> $DIR/const_panic.rs:30:20
29967ef6
XL
67 |
68LL | const Y_CORE: () = core::unreachable!();
c295e0f8 69 | ^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'internal error: entered unreachable code', $DIR/const_panic.rs:30:20
29967ef6 70 |
064997fb 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)
29967ef6 72
136023e0 73error[E0080]: evaluation of constant value failed
c295e0f8 74 --> $DIR/const_panic.rs:33:20
29967ef6
XL
75 |
76LL | const X_CORE: () = core::unimplemented!();
c295e0f8 77 | ^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'not implemented', $DIR/const_panic.rs:33:20
29967ef6 78 |
a2a8927a 79 = note: this error originates in the macro `core::unimplemented` (in Nightly builds, run with -Z macro-backtrace for more info)
29967ef6 80
136023e0 81error[E0080]: evaluation of constant value failed
c295e0f8 82 --> $DIR/const_panic.rs:36:20
29967ef6
XL
83 |
84LL | const W_CORE: () = core::panic!(MSG);
c295e0f8
XL
85 | ^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'hello', $DIR/const_panic.rs:36:20
86 |
064997fb 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)
c295e0f8
XL
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
29967ef6 94 |
064997fb 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)
29967ef6 96
c295e0f8 97error: aborting due to 12 previous errors
b7449926 98
17df50a5 99For more information about this error, try `rustc --explain E0080`.